diff options
author | KatolaZ <katolaz@freaknet.org> | 2019-07-24 23:30:36 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2019-07-24 23:30:36 +0100 |
commit | cbfdf55b79d29e94b1f3d263dc74ee55140bbc66 (patch) | |
tree | b353bc7d3923a6d8bc418f8afd8dc008bfb39390 /Makefile | |
parent | a74b46c7a4d1ccad6934aeb00915a2fd383f072c (diff) | |
parent | 21ab3617b0ba49ce8181666679714ff7397dac8b (diff) |
Merge branch 'master' into devel
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 31 |
1 files changed, 18 insertions, 13 deletions
@@ -1,36 +1,41 @@ # gramscii - simple editor for ASCII box-and-arrow charts +.POSIX: include config.mk SRC = gramscii.c -INCLUDES = config.h +INC = config.h all: options gramscii options: @echo "-+- build options -+-" - @echo "PREFIX = $(PREFIX)" - @echo "CFLAGS = $(CFLAGS)" - @echo "CC = $(CC)" + @echo "PREFIX = $(PREFIX)" + @echo "CFLAGS = $(CFLAGS)" + @echo "LDFLAGS = $(LDFLAGS)" + @echo "CC = $(CC)" @echo "-+-+-+-+-+-+-+-+-+-+-" -gramscii: $(SRC) $(INCLUDES) - $(CC) $(CFLAGS) -o $@ $(SRC) +gramscii: ${INC} + +clean: + @echo cleaning + @rm -f $(SRC:.c=) install: all @echo installing executable to ${DESTDIR}${BINDIR} @mkdir -p "${DESTDIR}${BINDIR}" - @cp -f ${NAME} "${DESTDIR}${BINDIR}" - @chmod 755 "${DESTDIR}${BINDIR}/${NAME}" + @cp -f gramscii "${DESTDIR}${BINDIR}" + @chmod 755 "${DESTDIR}${BINDIR}/gramscii" @echo installing manpage to "${DESTDIR}${MANDIR}/man1" @mkdir -p "${DESTDIR}${MANDIR}/man1" - @cp -f ${NAME}.1 "${DESTDIR}${MANDIR}/man1" - @chmod 644 "${DESTDIR}${MANDIR}/man1/${NAME}.1" + @cp -f gramscii.1 "${DESTDIR}${MANDIR}/man1" + @chmod 644 "${DESTDIR}${MANDIR}/man1/gramscii.1" uninstall: @echo removing executable file from ${DESTDIR}${BINDIR} - @rm -f "${DESTDIR}${BINDIR}/${NAME}" - @echo removing manpage from "${DESTDIR}${MANDIR}" - @rm -f "${DESTDIR}${MANDIR}/man1/${NAME}.1" + @rm -f "${DESTDIR}${BINDIR}/gramscii" + @echo removing manpage from "${DESTDIR}${MANDIR}/man1" + @rm -f "${DESTDIR}${MANDIR}/man1/gramscii.1" |