Remove generated .cpp files on 'make clean'
authorPeter Griess <pgriess@fb.com>
Wed, 20 Nov 2013 21:36:57 +0000 (13:36 -0800)
committerPeter Griess <pgriess@fb.com>
Tue, 26 Nov 2013 15:05:18 +0000 (07:05 -0800)
Summary:
- Add generated .cpp files to CLEANFILES so that they get swept up
during 'make clean' and friends

Test Plan: - autoreconf -i && ./configure && make check && make clean

Reviewed By: davejwatson@fb.com

FB internal diff: D1066270

folly/Makefile.am

index a211ade3f9109d99482d339c056b3988ecd6b4fb..91a993bf53f0cf3c850ab8714cf8f930182dcea8 100644 (file)
@@ -2,6 +2,8 @@ SUBDIRS = . test
 
 ACLOCAL_AMFLAGS = -I m4
 
+CLEANFILES =
+
 noinst_PROGRAMS = generate_fingerprint_tables
 generate_fingerprint_tables_SOURCES = build/GenerateFingerprintTables.cpp
 generate_fingerprint_tables_LDADD = libfolly.la
@@ -121,12 +123,15 @@ nobase_follyinclude_HEADERS = \
 
 FormatTables.cpp: build/generate_format_tables.py
        build/generate_format_tables.py
+CLEANFILES += FormatTables.cpp
 
 EscapeTables.cpp: build/generate_escape_tables.py
        build/generate_escape_tables.py
+CLEANFILES += EscapeTables.cpp
 
 GroupVarintTables.cpp: build/generate_varint_tables.py
        build/generate_varint_tables.py
+CLEANFILES += GroupVarintTables.cpp
 
 libfolly_la_SOURCES = \
        Benchmark.cpp \
@@ -168,6 +173,7 @@ endif
 
 FingerprintTables.cpp: generate_fingerprint_tables
        ./generate_fingerprint_tables
+CLEANFILES += FingerprintTables.cpp
 
 libfollyfingerprint_la_SOURCES = \
        FingerprintTables.cpp