diff options
author | Cem Keylan <cem@ckyln.com> | 2020-06-19 01:47:44 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-06-19 01:47:44 +0300 |
commit | 706c708b5aac148cd323a7f6b40513ba756ef45e (patch) | |
tree | 2a9c963283378af3c7e04ba2e4683ccbd220b978 /personal/grabc/patches | |
parent | c05ab7845f241547ab8607a91db1942617bc3d4e (diff) | |
download | repository-706c708b5aac148cd323a7f6b40513ba756ef45e.tar.gz |
move to personal
Diffstat (limited to 'personal/grabc/patches')
-rw-r--r-- | personal/grabc/patches/better-makefile.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/personal/grabc/patches/better-makefile.patch b/personal/grabc/patches/better-makefile.patch new file mode 100644 index 0000000..5fe735d --- /dev/null +++ b/personal/grabc/patches/better-makefile.patch @@ -0,0 +1,43 @@ +diff --git a/Makefile b/Makefile +index 5de8e52..9c17c2d 100644 +--- a/Makefile ++++ b/Makefile +@@ -12,8 +12,9 @@ cp=/bin/cp -fv + DESTDIR = + binary=./grabc + manpage=./grabc.1 +-bindir=/usr/local/bin +-mandir=/usr/local/share/man/man1 ++PREFIX = /usr/local ++bindir=${PREFIX}/bin ++mandir=${PREFIX}/share/man/man1 + + # replace -O with -g in order to debug + +@@ -33,20 +34,16 @@ all: $(PROGNAME) + $(PROGNAME) : $(OBJS) + $(CC) $(CFLAGS) -o $(PROGNAME) $(OBJS) $(LIBS) + +-doc: ++grabc.1: + pod2man grabc.pod > grabc.1 + +-install: installdirs install-bin install-man ++install: install-bin install-man + +-install-bin: +- ${cp} ${binary} ${DESTDIR}${bindir} ++install-bin: grabc ++ install -Dm755 -t ${DESTDIR}${bindir} ${binary} + +-installdirs: +- $(SHELL) ./mkinstalldirs ${DESTDIR}${bindir} +- $(SHELL) ./mkinstalldirs ${DESTDIR}${mandir} +- +-install-man: +- ${cp} ${manpage} ${DESTDIR}${mandir} ++install-man: grabc.1 ++ install -Dm644 -t ${DESTDIR}${mandir} ${manpage} + + deb: + /bin/rm -f *.deb |