summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Wilcox <AWilcox@Wilcox-Tech.com>2016-04-09 13:02:16 -0500
committerAndrew Wilcox <AWilcox@Wilcox-Tech.com>2016-04-09 13:02:16 -0500
commit4a2c467b9ddef475eb26a849958fd7c7e0e281d4 (patch)
treed72b278bcc31ef865183a186f54aef37afdbcec4
parentba7201c3c30bf9d74db3b54f666ec541661760bf (diff)
downloadshimmy-4a2c467b9ddef475eb26a849958fd7c7e0e281d4.tar.gz
shimmy-4a2c467b9ddef475eb26a849958fd7c7e0e281d4.tar.bz2
shimmy-4a2c467b9ddef475eb26a849958fd7c7e0e281d4.tar.xz
shimmy-4a2c467b9ddef475eb26a849958fd7c7e0e281d4.zip
Presenting the world's third-worst build system
-rw-r--r--Makefile14
-rw-r--r--getconf/Makefile14
2 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..54200fb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+.POSIX:
+
+all: getconf/getconf
+
+getconf/getconf:
+ cd getconf && $(MAKE)
+
+clean:
+ cd getconf && $(MAKE) clean
+
+install:
+ mkdir -p $(DESTDIR)/usr/bin
+ mkdir -p $(DESTDIR)/usr/share/man/man1
+ cd getconf && $(MAKE) install
diff --git a/getconf/Makefile b/getconf/Makefile
new file mode 100644
index 0000000..9abdd88
--- /dev/null
+++ b/getconf/Makefile
@@ -0,0 +1,14 @@
+.POSIX:
+
+CFLAGS=-D _POSIX_C_SOURCE=200809L -D _XOPEN_SOURCE=700
+
+getconf: getconf.c
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+
+clean:
+ -rm getconf
+
+install: getconf
+ cp getconf $(DESTDIR)/usr/bin/getconf
+ cp getconf.1 $(DESTDIR)/usr/share/man/man1/getconf.1
+