summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-09-30 22:07:45 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-09-30 22:07:45 (EDT)
commit6fc38c6b522e2b528f847b98d7f4423c971c9d84 (patch)
tree50847e0ee0cb71fe72eedb96c1a7a92f45933860 /lib
parent5fdb72b72399e37e344d7a3126f8baa4032dbb2f (diff)
Write lib/metadata/Makefile.in.
Diffstat (limited to 'lib')
-rw-r--r--lib/metadata/Makefile.in67
1 files changed, 67 insertions, 0 deletions
diff --git a/lib/metadata/Makefile.in b/lib/metadata/Makefile.in
new file mode 100644
index 0000000..2f52337
--- /dev/null
+++ b/lib/metadata/Makefile.in
@@ -0,0 +1,67 @@
+# opkbuild
+# Makefile.in
+# Input Makefile for configure.
+#
+# Copyright (C) 2012 Patrick "P. J." McDermott
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+package_name = @package_name@
+package_version= @package_version@
+
+srcdir = @srcdir@
+prefix = @prefix@
+libdir = @libdir@
+
+sed_script = s&@@PACKAGE_NAME@@&$(package_name)&;\
+ s&@@PACKAGE_VERSION@@&$(package_version)&;
+
+.SUFFIXES:
+.SUFFIXES: .sh .sm
+
+SRCS = proteanos.sh
+OBJS = $(SRCS:.sh=.sm)
+
+distdir = ../$(package_name)-$(package_version)/lib/metadata
+distfiles = Makefile.in $(SRCS)
+
+all: $(OBJS)
+
+$(OBJS):
+ @printf ' SED lib/metadata/%s\n' '$@'
+ @sed '$(sed_script)' '$(srcdir)/lib/metadata/$*.sh' >'$@'
+
+clean:
+ @for obj in $(OBJS); do \
+ printf ' RM lib/metadata/%s\n' "$${obj}"; \
+ rm -f "$${obj}"; \
+ done
+
+install: all
+ @for obj in $(OBJS); do \
+ printf ' INSTALL lib/metadata/%s\n' "$${obj}"; \
+ mkdir -p '$(DESTDIR)/$(libdir)/metadata'; \
+ cp "$${obj}" "$(DESTDIR)/$(libdir)/metadata/$${obj}"; \
+ chmod 644 "$(DESTDIR)/$(libdir)/metadata/$${obj}"; \
+ done
+
+uninstall:
+ @for obj in $(OBJS); do \
+ printf ' RM %s\n' "$${obj}"; \
+ rm -f "$(DESTDIR)/$(libdir)/metadata/$${obj}"; \
+ done
+
+$(distdir):
+ @mkdir -p '$(distdir)'
+ @cp -pR $(distfiles) '$(distdir)'