Commit 4a2c467b authored by A. Wilcox's avatar A. Wilcox 🦊
Browse files

Presenting the world's third-worst build system

parent ba7201c3
.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
.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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment