summaryrefslogtreecommitdiff
path: root/contrib/pic2graph/Makefile.sub
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/pic2graph/Makefile.sub')
-rw-r--r--contrib/pic2graph/Makefile.sub19
1 files changed, 19 insertions, 0 deletions
diff --git a/contrib/pic2graph/Makefile.sub b/contrib/pic2graph/Makefile.sub
new file mode 100644
index 00000000..d01a4353
--- /dev/null
+++ b/contrib/pic2graph/Makefile.sub
@@ -0,0 +1,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