]> sigrok.org Git - libsigrok.git/blob - Makefile.am
Add protocol decoder for Cyrustek ES51919 LCR meter chip.
[libsigrok.git] / Makefile.am
1 ##
2 ## This file is part of the libsigrok project.
3 ##
4 ## Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
5 ## Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me@gmail.com>
6 ##
7 ## This program is free software: you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation, either version 3 of the License, or
10 ## (at your option) any later version.
11 ##
12 ## This program is distributed in the hope that it will be useful,
13 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 ## GNU General Public License for more details.
16 ##
17 ## You should have received a copy of the GNU General Public License
18 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 ##
20
21 ACLOCAL_AMFLAGS = -I autostuff
22
23 AM_CPPFLAGS = -I$(srcdir)/src -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"'
24
25 lib_LTLIBRARIES = libsigrok.la
26
27 # Backend files
28 libsigrok_la_SOURCES = \
29         src/backend.c \
30         src/device.c \
31         src/session.c \
32         src/session_file.c \
33         src/session_driver.c \
34         src/drivers.c \
35         src/hwdriver.c \
36         src/trigger.c \
37         src/soft-trigger.c \
38         src/strutil.c \
39         src/log.c \
40         src/version.c \
41         src/error.c \
42         src/std.c
43
44 # Input modules
45 libsigrok_la_SOURCES += \
46         src/input/input.c \
47         src/input/binary.c \
48         src/input/chronovu_la8.c \
49         src/input/csv.c \
50         src/input/vcd.c \
51         src/input/wav.c
52
53 # Output modules
54 libsigrok_la_SOURCES += \
55         src/output/output.c \
56         src/output/analog.c \
57         src/output/ascii.c \
58         src/output/bits.c \
59         src/output/binary.c \
60         src/output/csv.c \
61         src/output/chronovu_la8.c \
62         src/output/wav.c \
63         src/output/gnuplot.c \
64         src/output/hex.c \
65         src/output/ols.c \
66         src/output/vcd.c
67
68 # SCPI support
69 libsigrok_la_SOURCES += \
70         src/scpi/scpi.c \
71         src/scpi/scpi_tcp.c
72 if NEED_RPC
73 libsigrok_la_SOURCES += \
74         src/scpi/scpi_vxi.c \
75         src/scpi/vxi_clnt.c \
76         src/scpi/vxi_xdr.c \
77         src/scpi/vxi.h
78 endif
79 if NEED_SERIAL
80 libsigrok_la_SOURCES += \
81         src/serial.c \
82         src/scpi/scpi_serial.c
83 endif
84 if NEED_USB
85 libsigrok_la_SOURCES += \
86         src/ezusb.c \
87         src/usb.c \
88         src/scpi/scpi_usbtmc_libusb.c
89 endif
90 if NEED_VISA
91 libsigrok_la_SOURCES += \
92         src/scpi/scpi_visa.c
93 endif
94 if NEED_GPIB
95 libsigrok_la_SOURCES += \
96         src/scpi/scpi_libgpib.c
97 endif
98
99 # Hardware (DMM chip parsers)
100 libsigrok_la_SOURCES += \
101         src/dmm/es519xx.c \
102         src/dmm/fs9721.c \
103         src/dmm/fs9922.c \
104         src/dmm/m2110.c \
105         src/dmm/metex14.c \
106         src/dmm/rs9lcd.c \
107         src/dmm/bm25x.c
108
109 # Hardware (LCR chip parsers)
110 libsigrok_la_SOURCES += \
111         src/lcr/es51919.c
112
113 # Hardware drivers
114 if HW_AGILENT_DMM
115 libsigrok_la_SOURCES += \
116         src/hardware/agilent-dmm/api.c \
117         src/hardware/agilent-dmm/agilent-dmm.h \
118         src/hardware/agilent-dmm/sched.c
119 endif
120 if HW_APPA_55II
121 libsigrok_la_SOURCES += \
122         src/hardware/appa-55ii/protocol.h \
123         src/hardware/appa-55ii/protocol.c \
124         src/hardware/appa-55ii/api.c
125 endif
126 if HW_ASIX_SIGMA
127 libsigrok_la_SOURCES += \
128         src/hardware/asix-sigma/asix-sigma.h \
129         src/hardware/asix-sigma/asix-sigma.c
130 endif
131 if HW_ATTEN_PPS3XXX
132 libsigrok_la_SOURCES += \
133         src/hardware/atten-pps3xxx/protocol.h \
134         src/hardware/atten-pps3xxx/protocol.c \
135         src/hardware/atten-pps3xxx/api.c
136 endif
137 if HW_BEAGLELOGIC
138 libsigrok_la_SOURCES += \
139         src/hardware/beaglelogic/beaglelogic.h \
140         src/hardware/beaglelogic/protocol.h \
141         src/hardware/beaglelogic/protocol.c \
142         src/hardware/beaglelogic/api.c
143 endif
144 if HW_BRYMEN_BM86X
145 libsigrok_la_SOURCES += \
146         src/hardware/brymen-bm86x/protocol.h \
147         src/hardware/brymen-bm86x/protocol.c \
148         src/hardware/brymen-bm86x/api.c
149 endif
150 if HW_BRYMEN_DMM
151 libsigrok_la_SOURCES += \
152         src/hardware/brymen-dmm/parser.c \
153         src/hardware/brymen-dmm/protocol.h \
154         src/hardware/brymen-dmm/protocol.c \
155         src/hardware/brymen-dmm/api.c
156 endif
157 if HW_CEM_DT_885X
158 libsigrok_la_SOURCES += \
159         src/hardware/cem-dt-885x/protocol.h \
160         src/hardware/cem-dt-885x/protocol.c \
161         src/hardware/cem-dt-885x/api.c
162 endif
163 if HW_CENTER_3XX
164 libsigrok_la_SOURCES += \
165         src/hardware/center-3xx/protocol.h \
166         src/hardware/center-3xx/protocol.c \
167         src/hardware/center-3xx/api.c
168 endif
169 if HW_CHRONOVU_LA
170 libsigrok_la_SOURCES += \
171         src/hardware/chronovu-la/protocol.h \
172         src/hardware/chronovu-la/protocol.c \
173         src/hardware/chronovu-la/api.c
174 endif
175 if HW_COLEAD_SLM
176 libsigrok_la_SOURCES += \
177         src/hardware/colead-slm/protocol.h \
178         src/hardware/colead-slm/protocol.c \
179         src/hardware/colead-slm/api.c
180 endif
181 if HW_CONRAD_DIGI_35_CPU
182 libsigrok_la_SOURCES += \
183         src/hardware/conrad-digi-35-cpu/protocol.h \
184         src/hardware/conrad-digi-35-cpu/protocol.c \
185         src/hardware/conrad-digi-35-cpu/api.c
186 endif
187 if HW_DEMO
188 libsigrok_la_SOURCES += \
189         src/hardware/demo/demo.c
190 endif
191 if HW_FLUKE_DMM
192 libsigrok_la_SOURCES += \
193         src/hardware/fluke-dmm/fluke-dmm.h \
194         src/hardware/fluke-dmm/fluke.c \
195         src/hardware/fluke-dmm/api.c
196 endif
197 if HW_FX2LAFW
198 libsigrok_la_SOURCES += \
199         src/hardware/fx2lafw/protocol.h \
200         src/hardware/fx2lafw/protocol.c \
201         src/hardware/fx2lafw/api.c
202 endif
203 if HW_GMC_MH_1X_2X
204 libsigrok_la_SOURCES += \
205         src/hardware/gmc-mh-1x-2x/protocol.h \
206         src/hardware/gmc-mh-1x-2x/protocol.c \
207         src/hardware/gmc-mh-1x-2x/api.c
208 endif
209 if HW_HAMEG_HMO
210 libsigrok_la_SOURCES += \
211         src/hardware/hameg-hmo/protocol.h \
212         src/hardware/hameg-hmo/protocol.c \
213         src/hardware/hameg-hmo/api.c
214 endif
215 if HW_HANTEK_DSO
216 libsigrok_la_SOURCES += \
217         src/hardware/hantek-dso/dso.h \
218         src/hardware/hantek-dso/dso.c \
219         src/hardware/hantek-dso/api.c
220 endif
221 if HW_IKALOGIC_SCANALOGIC2
222 libsigrok_la_SOURCES += \
223         src/hardware/ikalogic-scanalogic2/protocol.h \
224         src/hardware/ikalogic-scanalogic2/protocol.c \
225         src/hardware/ikalogic-scanalogic2/api.c
226 endif
227 if HW_IKALOGIC_SCANAPLUS
228 libsigrok_la_SOURCES += \
229         src/hardware/ikalogic-scanaplus/protocol.h \
230         src/hardware/ikalogic-scanaplus/protocol.c \
231         src/hardware/ikalogic-scanaplus/api.c
232 endif
233 if HW_KECHENG_KC_330B
234 libsigrok_la_SOURCES += \
235         src/hardware/kecheng-kc-330b/protocol.h \
236         src/hardware/kecheng-kc-330b/protocol.c \
237         src/hardware/kecheng-kc-330b/api.c
238 endif
239 if HW_LASCAR_EL_USB
240 libsigrok_la_SOURCES += \
241         src/hardware/lascar-el-usb/protocol.h \
242         src/hardware/lascar-el-usb/protocol.c \
243         src/hardware/lascar-el-usb/api.c
244 endif
245 if HW_MANSON_HCS_3XXX
246 libsigrok_la_SOURCES += \
247         src/hardware/manson-hcs-3xxx/protocol.h \
248         src/hardware/manson-hcs-3xxx/protocol.c \
249         src/hardware/manson-hcs-3xxx/api.c
250 endif
251 if HW_MIC_985XX
252 libsigrok_la_SOURCES += \
253         src/hardware/mic-985xx/protocol.h \
254         src/hardware/mic-985xx/protocol.c \
255         src/hardware/mic-985xx/api.c
256 endif
257 if HW_MOTECH_LPS_30X
258 libsigrok_la_SOURCES += \
259         src/hardware/motech-lps-30x/protocol.h \
260         src/hardware/motech-lps-30x/protocol.c \
261         src/hardware/motech-lps-30x/api.c
262 endif
263 if HW_NORMA_DMM
264 libsigrok_la_SOURCES += \
265         src/hardware/norma-dmm/protocol.h \
266         src/hardware/norma-dmm/protocol.c \
267         src/hardware/norma-dmm/api.c
268 endif
269 if HW_OPENBENCH_LOGIC_SNIFFER
270 libsigrok_la_SOURCES += \
271         src/hardware/openbench-logic-sniffer/protocol.h \
272         src/hardware/openbench-logic-sniffer/protocol.c \
273         src/hardware/openbench-logic-sniffer/api.c
274 endif
275 if HW_PIPISTRELLO_OLS
276 libsigrok_la_SOURCES += \
277         src/hardware/pipistrello-ols/protocol.h \
278         src/hardware/pipistrello-ols/protocol.c \
279         src/hardware/pipistrello-ols/api.c
280 endif
281 if HW_RIGOL_DS
282 libsigrok_la_SOURCES += \
283         src/hardware/rigol-ds/protocol.h \
284         src/hardware/rigol-ds/protocol.c \
285         src/hardware/rigol-ds/api.c
286 endif
287 if HW_SALEAE_LOGIC16
288 libsigrok_la_SOURCES += \
289         src/hardware/saleae-logic16/protocol.h \
290         src/hardware/saleae-logic16/protocol.c \
291         src/hardware/saleae-logic16/api.c
292 endif
293 if HW_SCPI_PPS
294 libsigrok_la_SOURCES += \
295         src/hardware/scpi-pps/protocol.h \
296         src/hardware/scpi-pps/protocol.c \
297         src/hardware/scpi-pps/profiles.c \
298         src/hardware/scpi-pps/api.c
299 endif
300 if HW_SERIAL_DMM
301 libsigrok_la_SOURCES += \
302         src/hardware/serial-dmm/protocol.h \
303         src/hardware/serial-dmm/protocol.c \
304         src/hardware/serial-dmm/api.c
305 endif
306 if HW_SYSCLK_LWLA
307 libsigrok_la_SOURCES += \
308         src/hardware/sysclk-lwla/lwla.h \
309         src/hardware/sysclk-lwla/lwla.c \
310         src/hardware/sysclk-lwla/protocol.h \
311         src/hardware/sysclk-lwla/protocol.c \
312         src/hardware/sysclk-lwla/api.c
313 endif
314 if HW_TELEINFO
315 libsigrok_la_SOURCES += \
316         src/hardware/teleinfo/protocol.h \
317         src/hardware/teleinfo/protocol.c \
318         src/hardware/teleinfo/api.c
319 endif
320 if HW_TESTO
321 libsigrok_la_SOURCES += \
322         src/hardware/testo/protocol.h \
323         src/hardware/testo/protocol.c \
324         src/hardware/testo/api.c
325 endif
326 if HW_TONDAJ_SL_814
327 libsigrok_la_SOURCES += \
328         src/hardware/tondaj-sl-814/protocol.h \
329         src/hardware/tondaj-sl-814/protocol.c \
330         src/hardware/tondaj-sl-814/api.c
331 endif
332 if HW_UNI_T_DMM
333 libsigrok_la_SOURCES += \
334         src/hardware/uni-t-dmm/protocol.h \
335         src/hardware/uni-t-dmm/protocol.c \
336         src/hardware/uni-t-dmm/api.c
337 endif
338 if HW_UNI_T_UT32X
339 libsigrok_la_SOURCES += \
340         src/hardware/uni-t-ut32x/protocol.h \
341         src/hardware/uni-t-ut32x/protocol.c \
342         src/hardware/uni-t-ut32x/api.c
343 endif
344 if HW_VICTOR_DMM
345 libsigrok_la_SOURCES += \
346         src/hardware/victor-dmm/protocol.h \
347         src/hardware/victor-dmm/protocol.c \
348         src/hardware/victor-dmm/api.c
349 endif
350 if HW_YOKOGAWA_DLM
351 libsigrok_la_SOURCES += \
352         src/hardware/yokogawa-dlm/protocol.h \
353         src/hardware/yokogawa-dlm/protocol.c \
354         src/hardware/yokogawa-dlm/protocol_wrappers.h \
355         src/hardware/yokogawa-dlm/protocol_wrappers.c \
356         src/hardware/yokogawa-dlm/api.c
357 endif
358 if HW_ZEROPLUS_LOGIC_CUBE
359 libsigrok_la_SOURCES += \
360         src/hardware/zeroplus-logic-cube/analyzer.c \
361         src/hardware/zeroplus-logic-cube/analyzer.h \
362         src/hardware/zeroplus-logic-cube/gl_usb.h \
363         src/hardware/zeroplus-logic-cube/gl_usb.c \
364         src/hardware/zeroplus-logic-cube/protocol.h \
365         src/hardware/zeroplus-logic-cube/protocol.c \
366         src/hardware/zeroplus-logic-cube/api.c
367 endif
368
369 libsigrok_la_LIBADD = $(LIBOBJS)
370
371 libsigrok_la_LDFLAGS = $(SR_LIB_LDFLAGS)
372
373 library_includedir = $(includedir)/libsigrok
374 library_include_HEADERS = \
375         include/libsigrok/libsigrok.h \
376         include/libsigrok/proto.h \
377         include/libsigrok/version.h
378 noinst_HEADERS = src/libsigrok-internal.h
379
380 pkgconfigdir = $(libdir)/pkgconfig
381 pkgconfig_DATA = libsigrok.pc
382
383 EXTRA_DIST = \
384         Doxyfile \
385         HACKING \
386         README.devices \
387         contrib/gnuplot_chronovu_la8.gpi \
388         contrib/gnuplot_rigol_ds1xx2.gpi \
389         contrib/gnuplot_usbeesx.gpi \
390         contrib/gnuplot_usbeedx8.gpi \
391         contrib/gnuplot_usbeedx16.gpi \
392         contrib/sigrok-logo-notext.png \
393         contrib/z60_libsigrok.rules
394
395 if HAVE_CHECK
396
397 TESTS = tests/check_main
398
399 check_PROGRAMS = ${TESTS}
400
401 tests_check_main_SOURCES = \
402         include/libsigrok/libsigrok.h \
403         tests/lib.c \
404         tests/lib.h \
405         tests/check_main.c \
406         tests/check_core.c \
407         tests/check_input_all.c \
408         tests/check_input_binary.c \
409         tests/check_output_all.c \
410         tests/check_session.c \
411         tests/check_strutil.c \
412         tests/check_version.c \
413         tests/check_driver_all.c
414
415 tests_check_main_CFLAGS = @check_CFLAGS@
416
417 tests_check_main_LDADD = $(top_builddir)/libsigrok.la @check_LIBS@
418
419 endif
420
421 BUILD_EXTRA =
422 INSTALL_EXTRA =
423 CLEAN_EXTRA =
424
425 if BINDINGS_CXX
426
427 lib_LTLIBRARIES += bindings/cxx/libsigrokxx.la
428
429 bindings_cxx_libsigrokxx_la_SOURCES = bindings/cxx/classes.cpp
430
431 bindings_cxx_libsigrokxx_la_LIBADD = libsigrok.la $(glibmm_LIBS)
432
433 bindings_cxx_libsigrokxx_la_LDFLAGS = $(SR_LIB_LDFLAGS)
434
435 library_include_HEADERS += \
436         bindings/cxx/include/libsigrok/libsigrok.hpp \
437         bindings/cxx/include/libsigrok/enums.hpp
438
439 pkgconfig_DATA += bindings/cxx/libsigrokxx.pc
440
441 doxy/xml/index.xml: include/libsigrok/libsigrok.h
442         $(AM_V_GEN)cd $(srcdir) && BUILDDIR=$(abs_builddir)/ doxygen Doxyfile 2>/dev/null
443
444 bindings/cxx/enums.cpp: bindings/cxx/enums.timestamp
445
446 bindings/cxx/include/libsigrok/enums.hpp: bindings/cxx/enums.timestamp
447
448 bindings/cxx/enums.timestamp: bindings/cxx/enums.py doxy/xml/index.xml \
449                 bindings/cxx/ConfigKey_methods.cpp bindings/cxx/QuantityFlag_methods.cpp
450         $(AM_V_GEN)$(PYTHON) $< doxy/xml/index.xml
451         $(AM_V_at)touch $@
452
453 bindings/cxx/classes.lo: bindings/cxx/classes.cpp bindings/cxx/enums.cpp \
454                 $(library_include_HEADERS)
455
456 cxx-clean:
457         rm -rf doxy/
458         rm -rf bindings/cxx/doxy/
459         rm -f bindings/cxx/enums.cpp
460         rm -f bindings/cxx/include/libsigrok/enums.hpp
461         rm -f bindings/cxx/enums.timestamp
462
463 CLEAN_EXTRA += cxx-clean
464
465 endif
466
467 CPPXMLDOC = bindings/cxx/doxy/xml/index.xml
468
469 $(CPPXMLDOC): bindings/cxx/include/libsigrok/libsigrok.hpp \
470                 bindings/cxx/enums.timestamp
471         $(AM_V_GEN)cd $(srcdir)/bindings/cxx && BUILDDIR=$(abs_builddir)/bindings/cxx/ doxygen Doxyfile 2>/dev/null
472
473 if BINDINGS_PYTHON
474
475 PDIR = bindings/python
476 PDOC = bindings/python/sigrok/core/doc.i
477
478 $(PDOC): bindings/swig/doc.py $(CPPXMLDOC)
479         $(AM_V_at)test -d $(PDIR)/sigrok/core || mkdir -p $(PDIR)/sigrok/core
480         $(AM_V_GEN)$(PYTHON) $< python $(CPPXMLDOC) > $@
481
482 python-build: $(PDIR)/timestamp
483
484 python-quietclean:
485         $(AM_V_at)cd $(PDIR) && $(PYTHON) $(abs_srcdir)/$(PDIR)/setup.py --quiet clean --all 3>&1 1>&2 2>&3 \
486                 | grep -v "can.t clean it"; true
487
488 $(PDIR)/timestamp: bindings/cxx/libsigrokxx.la $(PDIR)/sigrok/core/classes.i \
489                 bindings/swig/classes.i $(PDOC) $(library_include_HEADERS)
490         $(AM_V_at)$(MAKE) python-quietclean
491         $(AM_V_GEN)cd $(PDIR) && $(PYTHON) $(abs_srcdir)/$(PDIR)/setup.py --quiet build 3>&1 1>&2 2>&3 \
492                 | grep -v "command line option.*Wstrict-prototypes"; true
493         $(AM_V_at)touch $(PDIR)/timestamp
494
495 python-install:
496         cd $(PDIR) && $(PYTHON) $(abs_srcdir)/$(PDIR)/setup.py --quiet install --prefix $(prefix)
497
498 python-clean:
499         $(AM_V_at)$(MAKE) python-quietclean
500         $(AM_V_at)rm -f $(PDIR)/timestamp
501         $(AM_V_at)rm -rf $(PDIR)/doxy/
502
503 python-doc:
504         $(AM_V_at)cd $(srcdir)/$(PDIR) && BUILDDIR=$(abs_builddir)/$(PDIR)/ doxygen Doxyfile 2>/dev/null
505
506 BUILD_EXTRA += python-build
507 INSTALL_EXTRA += python-install
508 CLEAN_EXTRA += python-clean
509
510 endif
511
512 if BINDINGS_JAVA
513
514 JDIR = bindings/java
515 JPKG = org/sigrok/core
516 JCLS = $(JDIR)/$(JPKG)/classes
517 JINT = $(JDIR)/$(JPKG)/interfaces
518 JSRC = $(JCLS)/*.java $(srcdir)/$(JINT)/*.java
519 JSWG = $(JCLS)/classes.i
520 JDOC = $(JCLS)/doc.i
521 JCXX = $(JCLS)/classes_wrap.cxx
522 JLIB = $(JDIR)/libsigrok_java_core_classes.so
523 JJAR = $(JDIR)/sigrok-core.jar
524
525 java-build: $(JJAR) $(JLIB)
526
527 $(JDOC): bindings/swig/doc.py $(CPPXMLDOC)
528         $(AM_V_at)test -d $(JCLS) || mkdir -p $(JCLS)
529         $(AM_V_GEN)python $< java $(CPPXMLDOC) > $@
530
531 $(JCXX): $(JSWG) $(JDOC) bindings/swig/classes.i $(library_include_HEADERS)
532         $(AM_V_at)make java-clean
533         $(AM_V_GEN)swig -c++ -java -package org.sigrok.core.classes \
534                 -I$(srcdir)/include -I$(srcdir)/bindings/cxx/include -I$(srcdir) -I$(JCLS) -Ibindings/cxx/include -outdir $(JCLS) -o $@ $<
535
536 $(JJAR): $(JCXX)
537         $(AM_V_GEN)$(JAVAC) -sourcepath $(JDIR) -d $(JDIR) $(JSRC)
538         $(AM_V_at)jar cf $(JJAR) -C $(JDIR) $(JPKG)
539
540 $(JLIB): $(JCXX) bindings/cxx/libsigrokxx.la $(library_include_HEADERS)
541         $(AM_V_GEN)$(CXXCOMPILE) -L.libs -Lbindings/cxx/.libs \
542                 -fno-strict-aliasing -fPIC -shared $(JCLS)/classes_wrap.cxx \
543                 -lsigrokxx -o $(JLIB)
544
545 java-install:
546         $(INSTALL) -d $(libdir)/jni
547         $(INSTALL) $(JLIB) -t $(libdir)/jni
548         $(INSTALL) -d $(datadir)/java
549         $(INSTALL) $(JJAR) -t $(datadir)/java
550
551 java-clean:
552         $(AM_V_at)rm -f $(JCXX)
553         $(AM_V_at)rm -f $(JCLS)/*.java
554         $(AM_V_at)rm -f $(JCLS)/*.class
555         $(AM_V_at)rm -f $(JINT)/*.class
556         $(AM_V_at)rm -f $(JJAR)
557         $(AM_V_at)rm -f $(JLIB)
558         $(AM_V_at)rm -rf $(JDIR)/doxy/
559
560 java-doc:
561         $(AM_V_at)cd $(srcdir)/$(JDIR) && BUILDDIR=$(abs_builddir)/$(JDIR)/ doxygen Doxyfile 2>/dev/null
562
563 BUILD_EXTRA += java-build
564 INSTALL_EXTRA += java-install
565 CLEAN_EXTRA += java-clean
566
567 endif
568
569 all-local: $(BUILD_EXTRA)
570 install-exec-local: $(INSTALL_EXTRA)
571 clean-local: $(CLEAN_EXTRA)
572
573 MAINTAINERCLEANFILES = ChangeLog
574
575 .PHONY: ChangeLog
576 ChangeLog:
577         git --git-dir $(top_srcdir)/.git log > ChangeLog || touch ChangeLog
578
579 dist-hook: ChangeLog
580