Make sure libcompat is never empty
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 1 Aug 2010 10:00:56 +0000 (13:00 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 1 Aug 2010 10:00:56 +0000 (13:00 +0300)
compat/.gitignore [new file with mode: 0644]
compat/Makefile.am

diff --git a/compat/.gitignore b/compat/.gitignore
new file mode 100644 (file)
index 0000000..1684c26
--- /dev/null
@@ -0,0 +1 @@
+dummy.c
index 225ce39..5f0439b 100644 (file)
@@ -1,4 +1,11 @@
 noinst_LTLIBRARIES = libcompat.la
-libcompat_la_SOURCES =
+libcompat_la_SOURCES = dummy.c
 libcompat_la_LIBADD = $(LTLIBOBJS)
 libcompat_la_LDFLAGS = -no-undefined
+
+BUILT_SOURCES = dummy.c
+CLEANFILES = dummy.c
+
+dummy.c:
+       rm -f dummy.c
+       echo '/* Automatically generated */' > dummy.c