|
Revision 1040, 1.2 KB
(checked in by tautges, 2 years ago)
|
|
Version 10.2 of cgm.
|
| Line | |
|---|
| 1 | AUTOMAKE_OPTIONS = foreign |
|---|
| 2 | SUBDIRS = util geom |
|---|
| 3 | |
|---|
| 4 | if build_ACIS |
|---|
| 5 | ACIS_EXAMPLE_TEST=cd cgm_apps/examples/driverc++; make check-TESTS |
|---|
| 6 | endif |
|---|
| 7 | |
|---|
| 8 | # Automake doesn't seem to have a directory defined for |
|---|
| 9 | # platform-dependent data (or include) files. So put |
|---|
| 10 | # in $(libdir). Define a $(cfgdir) to get around automake's |
|---|
| 11 | # check that only libraries are going in $(libdir) |
|---|
| 12 | cfgdir = $(libdir) |
|---|
| 13 | cfg_DATA = cgm.make |
|---|
| 14 | |
|---|
| 15 | EXTRA_DIST = \ |
|---|
| 16 | cgm_apps/examples/README \ |
|---|
| 17 | cgm_apps/examples/facetdriver/Makefile \ |
|---|
| 18 | cgm_apps/examples/facetdriver/facets.cpp \ |
|---|
| 19 | cgm_apps/examples/facetdriver/README \ |
|---|
| 20 | cgm_apps/examples/driverc++/Makefile \ |
|---|
| 21 | cgm_apps/examples/driverc++/mergechk.cpp \ |
|---|
| 22 | cgm_apps/examples/driverc++/merge.sat |
|---|
| 23 | |
|---|
| 24 | example_test: |
|---|
| 25 | cd cgm_apps/examples/facetdriver; make check-TESTS |
|---|
| 26 | $(ACIS_EXAMPLE_TEST) |
|---|
| 27 | |
|---|
| 28 | check: example_test |
|---|
| 29 | |
|---|
| 30 | # By default, cmg.make will define these to $(srcdir). We |
|---|
| 31 | # want to override that during the INSTALL of the file so |
|---|
| 32 | # that the correct values are set (e.g. if someone does |
|---|
| 33 | # 'make prefix=/foo install', we don't know the correct install |
|---|
| 34 | # directory until we're doing the install. |
|---|
| 35 | install-data-hook: |
|---|
| 36 | echo "CGM_LIBDIR=${libdir}" >> $(DESTDIR)$(cfgdir)/cgm.make |
|---|
| 37 | echo "CGM_INCLUDEDIR=${includedir}" >> $(DESTDIR)$(cfgdir)/cgm.make |
|---|