Skip to content

Commit

Permalink
add manpage to package
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Mar 11, 2012
1 parent 24018b0 commit 981a6be
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ DESTDIR?=
PREFIX?=/usr/local
INSTALLBIN?=$(PREFIX)/bin
INSTALLLIB?=$(PREFIX)/lib
INSTALLMAN?=$(PREFIX)/man
INSTALLMAN?=$(PREFIX)/share/man
INSTALLINCLUDE?=$(PREFIX)/include

DPREFIX=$(DESTDIR)$(PREFIX)
Expand All @@ -30,6 +30,9 @@ test:
install: fex
install -d $(DINSTALLBIN)
install -m 755 fex $(DINSTALLBIN)/
install -d $(DINSTALLMAN)
install -d $(DINSTALLMAN)/man1
install fex.1 $(DINSTALLMAN)/man1/

fex: fex.o
$(CC) $(CFLAGS) fex.o $(SNPRINTF_CC) -o $@
Expand Down Expand Up @@ -60,9 +63,11 @@ pre-package:
rpm: package
rpmbuild -tb $(PACKAGE).tar.gz

create-package: pre-package
mkdir $(PACKAGE)
create-package: pre-package fex.1 fex.spec
-rm -rf $(PACKAGE)
-mkdir $(PACKAGE)
git ls-files | cpio -p --make-directories $(PACKAGE)/
(echo "fex.spec"; echo "fex.1") | cpio -p --make-directories $(PACKAGE)/
tar -zcf $(PACKAGE).tar.gz $(PACKAGE)/
rm -rf $(PACKAGE)

Expand Down

0 comments on commit 981a6be

Please sign in to comment.