angiosperm/librb/Makefile.am
Elizabeth Myers b376d0fd46 Properly clean up build artifacts.
Author: jackal^ from freenode
2016-04-09 04:55:57 -05:00

22 lines
492 B
Makefile

AUTOMAKE_OPTIONS = foreign
SUBDIRS = src
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = librb.pc
BUILT_SOURCES = include/serno.h
# NOTE: you'll want to change the below if you are unbundling
include/serno.h:
@if [ -f ../include/serno.h ]; then \
cp ../include/serno.h include/; \
else \
echo '#define SERNO "unknown"' >include/serno.h; \
echo '#define DATECODE 0UL' >>include/serno.h; \
fi
clean-local:
rm -f include/serno.h
rm -f src/version.c
rm -f src/version.c.last