summaryrefslogtreecommitdiff
path: root/contrib/pic2graph/Makefile.sub
blob: d01a4353d44127e97a03623088d92407eb12f08f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
MAN1=pic2graph.n
CLEANADD=pic2graph

all: pic2graph

pic2graph: pic2graph.sh
	rm -f $@; \
	sed -e "s|@g@|$(g)|g" \
	    -e "s|@VERSION@|$(version)$(revision)|" \
	    -e $(SH_SCRIPT_SED_CMD) $(srcdir)/pic2graph.sh >$@; \
	chmod +x $@

install_data: pic2graph
	-test -d $(bindir) || $(mkinstalldirs) $(bindir)
	-rm -f $(bindir)/pic2graph
	$(INSTALL_SCRIPT) pic2graph $(bindir)/pic2graph

uninstall_sub:
	-rm -f $(bindir)/pic2graph