Skip to content

Commit

Permalink
Avoid specific make target rules.
Browse files Browse the repository at this point in the history
It's a bit crappy specifying the source file manually but I'm not sure
there's a 100% portable way across all make(1) of doing this otherwise.
  • Loading branch information
Jonathan Perkin committed May 25, 2020
1 parent 53a13be commit d4b1874
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ man1_MANS= pkgin.1
nodist_pkgin_SOURCES= pkgin.1
pkgin.1: pkgin.1.in
@sed -e 's,/var/db/pkgin,$(PKGIN_DBDIR),g' \
-e 's,/usr/pkg/etc,$(sysconfdir),g' $^ >$@
-e 's,/usr/pkg/etc,$(sysconfdir),g' pkgin.1.in >$@

#
# Generated sources.
#
Expand Down
3 changes: 2 additions & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ pkgin_LDADD = $(LIBARCHIVE_LDFLAGS) $(LIBARCHIVE_LIBS) \
# Manual pages.
#
man1_MANS = pkgin.1

#
# Generated sources.
#
Expand Down Expand Up @@ -1491,7 +1492,7 @@ uninstall-man: uninstall-man1

pkgin.1: pkgin.1.in
@sed -e 's,/var/db/pkgin,$(PKGIN_DBDIR),g' \
-e 's,/usr/pkg/etc,$(sysconfdir),g' $^ >$@
-e 's,/usr/pkg/etc,$(sysconfdir),g' pkgin.1.in >$@
pkgindb_create.h: Makefile
@echo "/* Automatically generated, DO NOT EDIT */" >$@
@echo "#define CREATE_DRYDB \" \\" >>$@
Expand Down

0 comments on commit d4b1874

Please sign in to comment.