-
Notifications
You must be signed in to change notification settings - Fork 0
/
GNUmakefile
1562 lines (1251 loc) · 58.5 KB
/
GNUmakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# -*- mode: makefile -*-
# ACL2 Community Books Makefile
# Copyright (C) 2013 Centaur Technology
#
# Contact:
# Centaur Technology Formal Verification Group
# 7600-C N. Capital of Texas Highway, Suite 300, Austin, TX 78731, USA.
# http://www.centtech.com/
#
# License: (An MIT/X11-style license)
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
#
# For authorship information, see "Credits and History" below.
# Note: to use this Makefile, you will need to have already built a copy of
# ACL2. To get ACL2, see: http://www.cs.utexas.edu/users/moore/acl2/
#
#
# Usage: make [-j <jobs>] [<targets>] [ACL2=<cmd>] [options]
#
# -j <jobs> How many books you want to certify in parallel; typically the
# number of cores on your machine.
#
# <targets> Collections of books (or particular books) that you want to
# certify. Default: "basic"
#
# ACL2=<cmd> The command to use to run ACL2. Default: "acl2"
#
# Targets:
#
# basic The default. This is a lightweight selection of books for
# reasoning about arithmetic, lists, sets, strings, io, etc.,
# and other miscellaneous tools and macros. Many users may
# find "basic" to be a convenient starting place.
#
# all Certifies most books that are not horribly slow, including,
# for instance, most of workshops, projects, the centaur
# books, the jvm models, etc. Usually, committers to
# acl2-books should run "make all" first.
#
# everything A very full build, including very slow books. Most users
# will not want to use this target. It is useful for, e.g.,
# regression testing before releases. Note that
# EXCLUDED_PREFIXES may not work with the `everything' target.
#
# <dirname> There are targets for many top-level directories, e.g., you
# may run "make coi" to build everything in coi/ directory,
# "make rtl" to build the books within rtl/, and so on.
#
# <file-name> You can ask to certify particular files, for instance,
# "make arithmetic-5/top.cert"
#
# manual Builds doc/top.cert, which produces the combined ACL2
# books+system manual in doc/manual/index.html. Note:
# this target requires ACL2(h) and USE_QUICKLISP=1.
#
# special Includes all the books, allowing arbitrary code before and
# after an include-book, and writing the log for each book
# <bk>.lisp to the file <bk>.special.out.
#
# TAGS Makes a tag database for emacs including all the book sources.
#
# Basic Options:
#
# USE_QUICKLISP=1
# Experimental; needed for certain books. Quicklisp is a
# packaging system for Common Lisp libraries, sort of like CPAN
# for Perl or RubyGems for Ruby. May not work with some Lisps.
#
# Advanced Options:
#
# STARTJOB=<command>
# The shell to use for running jobs. Default: "bash"
#
# NO_RESCAN=1 Assume dependency information is up to date. This may save
# a few seconds on subsequent builds, especially on slow NFS
# systems. May cause trouble if dependencies have changed.
#
# ACL2_COMP=1 Causes multi-lisp compilation; not needed for most users.
#
# EXCLUDED_PREFIXES=<strings>
# Do not certify books that start with these prefixes. For
# instance, EXCLUDED_PREFIXES="projects workshops coi" would
# avoid building the books in these directories.
#
# ACL2_BOOK_CERTS=<cert-file-names>
# ACL2_BOOK_DIRS=<dir-names>
# Add particular files or directories as additional targets
# to certify, when using certain Makefile targets.
#
# [For target "special":]
# ACL2_SPECIAL_PRE=<pre-file-name>
# ACL2_SPECIAL_POST=<post-file-name>
# Specify the files of forms to execute in the ACL2 loop
# immediately before (<pre-file-name>) and immediately after
# (<post-file-name>) including a book.
#
# Of course, the usual GNU make options are also available. In particular, -k
# is useful for causing make to keep going when an error is encountered (but
# return a non-zero error status at the end).
##############################
### Section: Preliminaries
##############################
# For cygwin, we need to do something special to get a Unix-like
# pathname.
ifneq (,$(findstring CYGWIN, $(shell uname)))
export ACL2_SYSTEM_BOOKS := $(shell cygpath -m $(CURDIR))
else
export ACL2_SYSTEM_BOOKS := $(CURDIR)
endif
$(info ACL2_SYSTEM_BOOKS is $(ACL2_SYSTEM_BOOKS))
ifneq ($(ACL2_JOBS), )
${error Error: variable ACL2_JOBS is obsolete -- use -j instead -- see :DOC book-makefiles }
endif # ifneq ($(ACL2_JOBS), )
BUILD_DIR := $(ACL2_SYSTEM_BOOKS)/build
# Here is an undocumented way to specify a different shell, e.g., sh.
# There are no guarantees that another shell will work, however!
ifdef ACL2_SHELL_OVERRIDE
SHELL := $(ACL2_SHELL_OVERRIDE)
else
SHELL := $(shell which bash)
endif # ifdef ACL2_SHELL_OVERRIDE
STARTJOB ?= $(SHELL)
# We avoid ?= below because we want to be sure that the check below is
# done only after ACL2 has been assigned, and because we want to treat
# an empty $(ACL2) the same as an undefined ACL2.
ifeq ($(ACL2),)
ACL2 := acl2
endif # ifeq ($(ACL2),)
.SUFFIXES:
.SUFFIXES: .cert .lisp
.PHONY: basic all
# Keep this before any other target so that basic will be the default target
basic:
# Set environment variable HTTP_PROXY_WITH_PORT if your curl needs to
# use a proxy.
ifneq ($(HTTP_PROXY_WITH_PORT), )
HTTP_PROXY_FLAG=-x $(HTTP_PROXY_WITH_PORT)
endif # HTTP_PROXY_WITH_PORT
QUICKLISP_DIR := centaur/quicklisp
.PHONY: quicklisp
ifeq ($(USE_QUICKLISP), )
quicklisp:
$(MAKE) USE_QUICKLISP=1 $(QUICKLISP_DIR)/top.cert
else
$(QUICKLISP_DIR)/quicklisp.lsp:
@echo "Downloading Quicklisp"
@cd $(QUICKLISP_DIR); \
curl http://beta.quicklisp.org/quicklisp.lisp \
-o quicklisp.lsp $(HTTP_PROXY_FLAG)
@$(BUILD_DIR)/wait.pl $(QUICKLISP_DIR)/quicklisp.lsp
@ls -l $(QUICKLISP_DIR)/quicklisp.lsp
$(QUICKLISP_DIR)/inst/setup.lisp: $(QUICKLISP_DIR)/quicklisp.lsp \
$(QUICKLISP_DIR)/install.lsp
@echo "Setting up Quicklisp..."
@cd $(QUICKLISP_DIR); \
($(STARTJOB) -c \
"ACL2_CUSTOMIZATION=NONE $(ACL2) < install.lsp &> install.out" ; \
$(BUILD_DIR)/wait.pl inst/setup.lisp ;\
ls -l inst/setup.lisp) \
|| (tail -300 install.out | sed 's/^/ | /'; false)
$(QUICKLISP_DIR)/base.cert: $(QUICKLISP_DIR)/inst/setup.lisp
quicklisp: $(QUICKLISP_DIR)/top.cert
# I don't think we need this now
# all: $(QUICKLISP_DIR)/top.cert
endif # USE_QUICKLISP
# [Jared]: I moved these out of the USE_QUICKLISP section so that "make clean"
# will always remove the quicklisp files if you have ever built with
# USE_QUICKLISP before. The goal is to ensure that stale quicklisp files
# aren't left around after a "make clean" by accident.
.PHONY: quicklisp_clean
quicklisp_clean:
echo "Removing downloaded quicklisp files (if any)" ; \
cd $(QUICKLISP_DIR); rm -rf quicklisp.lsp inst/asdf.lisp inst/cache \
inst/client-info.sexp inst/dists inst/local-projects \
inst/quicklisp inst/setup.lisp inst/tmp install.out Makefile-tmp
cd $(QUICKLISP_DIR); $(BUILD_DIR)/clean.pl
# The following hack was useful briefly in late January, 2014, when
# there were issues with quicklisp that caused us not to want to clean
# quicklisp files. Rager likes this hack (because his company-wide
# ACL2 installation isn't writable by those that use it and he doesn't
# always want to clean quicklisp since proxies have to be configured
# and because it's good to preserve the
# quicklisp/inst/cache/asdf-installs directory), and so he prefers
# that the "hack" be preserved.
ifndef ACL2_SAVE_QUICKLISP
clean: quicklisp_clean
endif # ifndef ACL2_SAVE_QUICKLISP
# Ensure that the following variable is simply expanded.
ACL2_CUSTOM_TARGETS :=
##############################
### Section: Create auxiliary files (Makefile-xxx) and initial OK_CERTS
##############################
# It seems that info is defined starting in GNU make version 3.81.
# But version 3.80 seems to tolerate calls of info, simply ignoring
# them. We could use a variable, as follows, so that you can set
# INFO=warning on the command line if you want to see the messages
# even with GNU make version 3.80. But maybe this is too ugly, so we
# just leave the idea as a comment.
## INFO := info
### Example: Prints something like "Makefile:227: just a test" when
### invoked with INFO=warning; otherwise, same as $(info just a test).
## $(eval $$($(INFO) just a test))
ifndef NO_RESCAN
# We skip the scan for excluded prefixes. This change was implemented
# by Matt Kaufmann on 9/25/2013 as part of the process of fixing
# ACL2(r) regressions. (Note that nonstd/Makefile includes this
# Makefile.)
ifneq ($(EXCLUDED_PREFIXES), )
space = # just a space
EGREP_EXTRA_EXCLUDE_STRING = |$(subst $(space) $(space),|,$(strip $(EXCLUDED_PREFIXES)))
endif # ifneq ($(EXCLUDED_PREFIXES), )
# We exclude some directories because there are subdirectories and it's just
# easiest to stop at the root.
# We also exclude centaur/satlink/solvers because it depends on all kinds of
# extra SAT solvers.
$(info Scanning for books...)
REBUILD_MAKEFILE_BOOKS := $(shell \
rm -f $(BUILD_DIR)/Makefile-books; \
time find . -name "*.lisp" \
| egrep -v '^(\./)?(interface|centaur/satlink/solvers|projects/milawa/ACL2|clause-processors/SULFA|workshops/2003/kaufmann/support$(EGREP_EXTRA_EXCLUDE_STRING))' \
| fgrep -v '.\#' \
> $(BUILD_DIR)/Makefile-books; \
ls -l $(BUILD_DIR)/Makefile-books)
#$(info $(REBUILD_MAKEFILE_BOOKS))
$(info Scanning for dependencies...)
REBUILD_MAKEFILE_DEPS := $(shell \
rm -f $(BUILD_DIR)/Makefile-deps $(BUILD_DIR)/Makefile-deps.out; \
time ($(BUILD_DIR)/cert.pl \
--quiet \
--static-makefile $(BUILD_DIR)/Makefile-deps \
--cache $(BUILD_DIR)/Makefile-cache \
--acl2-books `pwd` \
--targets $(BUILD_DIR)/Makefile-books \
--write-sources $(BUILD_DIR)/Makefile-sources \
--write-certs $(BUILD_DIR)/Makefile-certs \
1>&2) ;\
echo 'MFDEPS_DEBUG := $$(shell echo Reading book deps ' \
'Makefile-deps created on' `date` '1>&2)' \
>> $(BUILD_DIR)/Makefile-deps; \
ls -l $(BUILD_DIR)/Makefile-deps)
#$(info $(REBUILD_MAKEFILE_DEPS))
$(info Done scanning.)
endif # ifndef NO_RESCAN
include $(BUILD_DIR)/Makefile-deps
$(info Determining ACL2 features (for ACL2 = $(ACL2)))
ACL2_FEATURES := $(shell \
rm -f $(BUILD_DIR)/Makefile-features ; \
cd $(BUILD_DIR); ACL2_CUSTOMIZATION=NONE $(STARTJOB) -c \
"$(ACL2) < cert_features.lsp &> Makefile-features.out" ;\
ls -l $(BUILD_DIR)/Makefile-features)
$(info Determining whether Glucose is installed)
# If glucose doesn't exist, then the error message saying it can't be
# found is redirected to /dev/null, resulting in an empty value for
# GLUCOSE_EXISTS
GLUCOSE_EXISTS := $(shell glucose --version 2>/dev/null)
ifdef GLUCOSE_EXISTS
OS_HAS_GLUCOSE := 1
endif # ifdef GLUCOSE_EXISTS
# Only conditionally include Makefile-features, so that make clean works even
# if ACL2 isn't built.
-include $(BUILD_DIR)/Makefile-features
$(info ACL2_HAS_HONS := $(ACL2_HAS_HONS))
$(info ACL2_HAS_ANSI := $(ACL2_HAS_ANSI))
$(info ACL2_HAS_PARALLEL := $(ACL2_HAS_PARALLEL))
$(info ACL2_HAS_REALS := $(ACL2_HAS_REALS))
$(info ACL2_COMP_EXT := $(ACL2_COMP_EXT))
$(info ACL2_HOST_LISP := $(ACL2_HOST_LISP))
$(info OS_HAS_GLUCOSE := $(OS_HAS_GLUCOSE))
$(info USE_QUICKLISP := $(USE_QUICKLISP))
$(info Done with features.)
# Cause error for illegal certification attempts:
ifeq ($(ACL2_HAS_HONS), )
$(CERT_PL_HONS_ONLY):
$(MAKE) no_hons_error NO_RESCAN=1 CERT_PL_HONS_ONLY_BOOK=$@
.PHONY: no_hons_error
no_hons_error:
@echo "Error! Target $(CERT_PL_HONS_ONLY_BOOK) requires hons."
@exit 1
endif # ifeq ($(ACL2_HAS_HONS), )
ifeq ($(ACL2_HAS_ANSI), )
# We are presumably running GCL/CLtL1. There is no need to cause an
# error in the ansi-only case, because the code above will already
# handle that.
$(filter-out $(CERT_PL_HONS_ONLY), $(CERT_PL_ANSI_ONLY)):
$(MAKE) no_ansi_error NO_RESCAN=1 CERT_PL_ANSI_ONLY_BOOK=$@
.PHONY: no_ansi_error
no_ansi_error:
@echo "Error! Target $(CERT_PL_ANSI_ONLY_BOOK) requires ANSI Common Lisp."
@exit 1
endif # ifeq ($(ACL2_HAS_ANSI), )
# End of "Cause error for illegal certification attempts".
OK_CERTS := $(CERT_PL_CERTS)
ifeq ($(ACL2_HAS_HONS), )
# We use "{...}" delimeters to avoid errors in version 3.80 of make.
${info Excluding books that need ACL2(h) [...]}
OK_CERTS := $(filter-out $(CERT_PL_HONS_ONLY), $(OK_CERTS))
endif # ifeq ($(ACL2_HAS_HONS), )
ifneq (CCL, $(ACL2_HOST_LISP))
${info Excluding books that are CCL-only: [$(CERT_PL_CCL_ONLY)]}
OK_CERTS := $(filter-out $(CERT_PL_CCL_ONLY), $(OK_CERTS))
endif
ifeq ($(ACL2_HAS_ANSI), )
# We use "{...}" delimeters to avoid errors in version 3.80 of make.
${info Excluding books that need ANSI Common Lisp [...]}
OK_CERTS := $(filter-out $(CERT_PL_ANSI_ONLY), $(OK_CERTS))
endif # ifeq ($(ACL2_HAS_ANSI), )
ifeq ($(OS_HAS_GLUCOSE), )
$(info Excluding books that need Glucose: [$(CERT_PL_USES_GLUCOSE)])
OK_CERTS := $(filter-out $(CERT_PL_USES_GLUCOSE), $(OK_CERTS))
endif # ifeq ($(OS_HAS_GLUCOSE), )
ifeq ($(ACL2_HAS_REALS), )
$(info Excluding ACL2(r)-only books: [$(CERT_PL_USES_ACL2R)])
OK_CERTS := $(filter-out $(CERT_PL_USES_ACL2R), $(OK_CERTS))
endif # ifeq ($(ACL2_HAS_REALS), )
ifneq ($(ACL2_HAS_REALS), )
$(info Excluding non-ACL2(r) books: [$(CERT_PL_NON_ACL2R)])
OK_CERTS := $(filter-out $(CERT_PL_NON_ACL2R), $(OK_CERTS))
all: nonstd/workshops/1999/calculus/book/proof-outline.cert
all: nonstd/workshops/1999/calculus/book/tree.cert
all: nonstd/workshops/1999/calculus/book/tree/proof-outline
# Some additional special instructions for generated ACL2(r)-only books.
nonstd/workshops/1999/calculus/book/proof-outline.cert: nonstd/workshops/1999/calculus/book/tree.cert
nonstd/workshops/1999/calculus/book/tree.cert: nonstd/workshops/1999/calculus/book/tree.lisp
cd nonstd/workshops/1999/calculus/book/ ; \
$(STARTJOB) -c "$(MAKE) tree.cert"
ls -l nonstd/workshops/1999/calculus/book/tree.cert
nonstd/workshops/1999/calculus/book/tree.lisp:
cd nonstd/workshops/1999/calculus/book ; \
$(STARTJOB) -c "$(MAKE) -f Makefile-essence tree.lisp"
ls -l nonstd/workshops/1999/calculus/book/tree.lisp
nonstd/workshops/1999/calculus/book/tree/proof-outline: \
nonstd/workshops/1999/calculus/book/tree.cert \
nonstd/workshops/1999/calculus/book/proof-outline.cert
cd nonstd/workshops/1999/calculus/book/ ; \
$(STARTJOB) -c "$(MAKE) proof-outline"
endif # ifneq ($(ACL2_HAS_REALS), )
ifeq ($(USE_QUICKLISP), )
$(info Excluding books that depend on Quicklisp: [$(CERT_PL_USES_QUICKLISP)])
OK_CERTS := $(filter-out $(CERT_PL_USES_QUICKLISP), $(OK_CERTS))
endif
# SLOW_BOOKS is a list of books that are too slow to include as part
# of an ordinary regression. There are currently comments in some of
# the corresponding Makefiles that explain something about these
# books. WARNING: It is probably a bad idea to include targets here
# that are in ACL2_CUSTOM_TARGETS: SLOW_BOOKS is removed from OK_CERTS
# just below, but later, ACL2_CUSTOM_TARGETS adds its targets to
# OK_CERTS.
# Before defining SLOW_BOOKS, we define ADDED_BOOKS to be the books
# that we want to add back in when using target "everything" instead
# of the default target, "all".
ADDED_BOOKS := \
coi/defung/defung-stress-long.cert \
coi/termination/assuming/complex.cert \
models/jvm/m5/apprentice.cert \
system/parallel/proofs/ideal-speedup.cert \
workshops/2009/sumners/support/examples.cert \
workshops/2011/krug-et-al/support/MinVisor/va-to-pa-thm.cert \
workshops/2011/krug-et-al/support/MinVisor/setup-nested-page-tables.cert
# The following has taken only a couple of minutes on a decent Linux
# system in 2013. However, ACL2 built on GCL 2.6.8 and Mac OS 10.6
# cannot complete the certification without running exhausting STRING
# storage, probably because it contains a large stobj. So we certify
# it only in "everything" regressions.
ADDED_BOOKS += workshops/2013/hardin-hardin/support/APSP.cert
ifneq ($(ACL2_HAS_HONS), )
ADDED_BOOKS += milawa-test-basic
endif
# Now SLOW_BOOKS is defined as the list above, except that below, we
# also include in SLOW_BOOKS some books that are too slow for both an
# ordinary regression (target "all") and an "everything" regression.
# Then we remove SLOW_BOOKS from regressions, restoring its subset,
# ADDED_BOOKS, for the "everything" target.
SLOW_BOOKS := $(ADDED_BOOKS)
# The models/y86 books are a special case. We prefer to include them
# only with the "everything" target, not the "all" target, since they
# have large memory requirements -- and then, only for certain host
# Lisps. Originally we handled them in a custom way, using old-style
# Makefiles based on Makefile-generic rather than cert.pl, but then we
# did not get the benefit of the cert.pl dependency analysis; for
# example, if arithmetic-5/top.cert was out of date then "make" would
# not rebuild the models/y86/ books as it should. So we no longer
# exclude them in the "egrep -v" command above, instead allowing
# cert.pl to do its thing.
ifneq ($(ACL2_HAS_HONS), )
ifneq ($(filter CCL ALLEGRO SBCL, $(ACL2_HOST_LISP)), )
# When the Lisp is not one of those mentioned on the line above, we
# skip the models/y86/ books, even for the "everything" target. In
# particular, we exclude GCL: in one ANSI GCL ACL2(h) regression,
# certification runs were still proceeding after more than 10 hours
# for each of four books under models/y86/
# (y86-basic/common/x86-state, y86-two-level/common/x86-state,
# y86-two-level-abs/common/x86-state-concrete, and
# y86-basic/py86/popcount), probably because of the demands of
# def-gl-thm. Moreover, LispWorks has too small a value for
# array-dimension-limit to support these certifications.
ADDED_BOOKS += $(filter models/y86/%, $(OK_CERTS))
endif # ifneq ($(filter CCL ALLEGRO SBCL, $(ACL2_HOST_LISP)), )
endif # ifneq ($(ACL2_HAS_HONS), )
OK_CERTS := $(filter-out $(SLOW_BOOKS) models/y86/%, $(OK_CERTS))
##############################
### Section: Cleaning
##############################
# We delegate most of the cleaning process to clean.pl, a simple perl script
# that lets us take care not to delete certain kinds of files. The clean.pl
# script will remove things like .cert and .fasl files.
CLEAN_FILES_EXPLICIT := \
$(BUILD_DIR)/Makefile-comp \
$(BUILD_DIR)/Makefile-comp-pre \
$(BUILD_DIR)/Makefile-deps \
$(BUILD_DIR)/Makefile-books \
$(BUILD_DIR)/Makefile-features \
$(BUILD_DIR)/Makefile-cache \
serialize/test.sao \
bdd/benchmarks.lisp \
nonstd/workshops/1999/calculus/book/tree.lisp
MORECLEAN_FILES_EXPLICIT := \
doc/manual \
system/doc/manual
.PHONY: clean_books clean
clean_books:
@echo "Using clean.pl to remove certificates, etc."
$(BUILD_DIR)/clean.pl
# We test that directory centaur/quicklisp exists because it probably
# doesn't for nonstd/, and we include this makefile from that
# directory.
clean: clean_books
@echo "Removing extra, explicitly temporary files."
rm -rf $(CLEAN_FILES_EXPLICIT)
for dir in $(dir $(ACL2_CUSTOM_TARGETS)) ; \
do \
if [ -f $$dir/Makefile ] ; then \
(cd $$dir ; $(MAKE) clean) ; \
fi ; \
done
moreclean: clean
@echo "Removing even more generated files (documentation, etc)."
rm -rf $(MORECLEAN_FILES_EXPLICIT)
##############################
### Section: Miscellaneous custom support
##############################
# BOZO. make-event/local-elided stuff is tricky because it thinks it can tell whether
# local-elided.lisp was provisionally certified or not, which doesn't
# necessarily make any sense... this is the easiest way to fix it so that it
# works with provisional certification:
make-event/local-elided-include.pcert1: make-event/local-elided.cert
make-event/macros-include.pcert1: make-event/macros.cert
make-event/local-requires-skip-check-include.pcert1: \
make-event/local-requires-skip-check.cert
# Deal with generated file bdd/benchmarks.lisp.
OK_CERTS += bdd/benchmarks.cert
bdd/benchmarks.cert: bdd/benchmarks.lisp
bdd/benchmarks.lisp: bdd/cbf.cert bdd/create-benchmarks.lsp
cd bdd ; $(STARTJOB) -c "(echo '(ld \"create-benchmarks.lsp\")' | $(ACL2))"
# Use custom Makefiles:
# There are several directories that we can't easily work directly
# into our general framework because they each have a custom Makefile.
# We handle those next. For example, two directories test provisional
# certification: system/pcert, which was constructed explicitly to
# test provisional certification; and workshops/2011/verbeek-schmaltz,
# which is slow without provisional certification but is reasonably
# fast using provisional certification.
# Our perhaps gross hack is to use the old ACL2 Makefile-generic
# system to invoke the custom makefiles, for example as follows for
# verbeek-schmaltz.
# - we tell cert.pl not to look at verbeek-schmaltz/sources, via a
# cert_pl_exclude file;
# - we add a verbeek-schmaltz/deps.lisp file with the prerequisites that
# we need before going into the verbeek-schmaltz directory;
# - we use an arbitrary top-level target to certify the actual
# verbeek-schmaltz books after certifying the deps, which need not
# be in any sense "the top-level book" for the directory -- but if
# not, then if a book B in any other directory comes to depend on
# a book other than the target that we picked, we will need to
# make it depend on that target.
# In order to create a deps file, we connect to the directory (e.g.,
# cd clause-processors/SULFA), and then use shell commands:
# fgrep ':dir :system' `find . -name "*.lisp"`
# fgrep ':dir :system' `find . -name "*.acl2"`
# We skip those that do not have counterparts under nonstd/ when
# ACL2_HAS_REALS indicates a regression being done by ACL2(r) in
# nonstd/. Also, for simplicity, we only handle ACL2_COMP for
# system/pcert/, and we do that in the section below, "Support for
# ACL2_COMP".
ifndef ACL2_COMP
ifeq ($(ACL2_HAS_REALS), )
# Warning! For each file below, the directory should either have a
# cert_pl_exclude file or else be explicitly excluded in the egrep
# command that is used to define REBUILD_MAKEFILE_BOOKS, above.
# Otherwise we might make the same file twice, would could cause
# conflicts if -j is other than 1. Also: Do not include any targets
# that we don't always want built with "all".
ACL2_CUSTOM_TARGETS := \
clause-processors/SULFA/target.cert \
fix-cert/fix-cert.cert \
projects/translators/l3-to-acl2/target.cert \
workshops/1999/multiplier/proof.cert \
workshops/2003/greve-wilding-vanfleet/support/firewallworks.cert \
workshops/2003/kaufmann/support/input/defs-in.cert \
workshops/2004/sumners-ray/support/success.txt \
workshops/2011/verbeek-schmaltz/sources/correctness2.cert
# Warning! For each target below, if there is a cert_pl_exclude file
# in the directory or it is exluded explicitly by
# REBUILD_MAKEFILE_BOOKS, and a "deps" file is used, then that "deps"
# file should be placed in a different directory (that is not
# excluded). For example, projects/translators/l3-to-acl2/target.cert
# below depends on projects/translators/l3-to-acl2-deps.cert, for
# which dependencies will be generated since there is no
# cert_pl_exclude file in projects/translators/ (even though there is
# a cert_pl_exclude in projects/translators/l3-to-acl2/).
# We only make the books under SULFA if a documented test for an
# installed SAT solver succeeds.
clause-processors/SULFA/target.cert: \
clause-processors/deps-SULFA.cert
@if [ -f ${PWD}/../aux/minisat2/${HOSTTYPE}/minisat/core/minisat ] ; \
then \
(cd $(@D) ; $(MAKE)) ; \
else \
echo "*NOTE*: Skipping SULFA subdirectory (no SAT solver installed; see SULFA/README)." ; \
fi
# The following has no dependencies, so doesn't need a "deps" file.
fix-cert/fix-cert.cert:
cd $(@D) ; $(STARTJOB) -c "$(MAKE)"
projects/translators/l3-to-acl2/target.cert: \
projects/translators/l3-to-acl2-deps.cert
cd $(@D) ; $(STARTJOB) -c "$(MAKE) -j 1"
workshops/1999/multiplier/proof.cert: \
workshops/1999/deps-multiplier.cert
cd $(@D) ; $(STARTJOB) -c "$(MAKE)"
workshops/2003/greve-wilding-vanfleet/support/firewallworks.cert: \
workshops/2003/greve-wilding-vanfleet/deps.cert
cd $(@D) ; $(STARTJOB) -c "$(MAKE)"
# Note that we change to the parent directory in order to pick up all
# of support/.
workshops/2003/kaufmann/support/input/defs-in.cert: \
workshops/2003/kaufmann/deps.cert
cd $(@D)/.. ; $(STARTJOB) -c "$(MAKE)"
# The following has no dependencies, so doesn't need a "deps" file.
workshops/2004/sumners-ray/support/success.txt:
cd $(@D) ; $(STARTJOB) -c "$(MAKE)"
workshops/2011/verbeek-schmaltz/sources/correctness2.cert: \
workshops/2011/verbeek-schmaltz/deps.cert
cd $(@D) ; $(STARTJOB) -c "$(MAKE)"
endif # ifeq ($(ACL2_HAS_REALS), )
ACL2_CUSTOM_TARGETS += system/pcert/sub.cert
system/pcert/sub.cert: \
system/deps-pcert.cert
cd $(@D) ; $(STARTJOB) -c "$(MAKE)"
endif # ifndef ACL2_COMP
# We avoid += because we want the custom targets to start first, in
# order to maximize parallelism. If they go at the end, maybe we'll
# have an expensive sequential tail in the regression.
OK_CERTS := $(ACL2_CUSTOM_TARGETS) $(OK_CERTS)
##############################
### Section: Support for ACL2_COMP
##############################
ifdef ACL2_COMP
# Multi-lisp compilation stuff for developers.
# NOTE: This build might fail for compiled files that involve
# include-raw, that have readtime conditionals, that can cause stack
# overflows when loading uncompiled code, etc. We don't consider it
# critical, however, that every compiled file get built. See "Define
# books to be skipped for multi-lisp compilation", above, for the
# compiled files we do not attempt to build.
# Typical making of compiled files in books/ could be done as follows.
# First, in ACL2 sources directory:
# make -j 4 regression-fresh ACL2_SAVE_EXPANSION=t ACL2=acl2-ccl
# Then, in books/ directory (where ACL2_SAVE_EXPANSION=t is optional,
# but a good idea in case some .cert file is unexpectedly remade):
# make -j 4 -k ACL2_COMP=t ACL2_SAVE_EXPANSION=t ACL2=acl2-sbcl
# Typical making of compiled files in books/nonstd/ could be done as follows.
# First, in ACL2 sources directory:
# make -j 4 regression-nonstd-fresh ACL2_SAVE_EXPANSION=t ACL2=acl2r-ccl
# Then, in books/nonstd/ directory (where ACL2_SAVE_EXPANSION=t is optional,
# but a good idea in case some .cert file is unexpectedly remade):
# make -j 4 -k ACL2_COMP=t ACL2_SAVE_EXPANSION=t ACL2=acl2r-sbcl
# Note: these targets won't work unless you've already done a build
# using a "compatible" ACL2 (both ACL2, both ACL2(hp), etc.) after
# first setting ACL2_SAVE_EXPANSION=t, and then you define ACL2_COMP
# (e.g., ACL2_COMP=1) with a subsequent call of make.
# We skip multi-lisp compilation for the centaur books, because these
# may be more likely to have code conditional on the combination of
# both features :CCL and :HONS. That can affect checksums, thus
# making it appear that a book certified in CCL is not certified in
# another Lisp. We also skip multi-lisp compilation for books that
# depend on centaur/ books when we see a multi-lisp compilation
# failure for books in their directories. (Thus, even though
# projects/security/des/ depends on GL and hence centaur/, we don't
# exclude its books.) We might not need to skip the y86 books, but
# since some Lisps have trouble certifying those, we play it safe and
# skip them.
$(info For building compiled (.$(ACL2_COMP_EXT)) files, excluding centaur books)
OK_CERTS := $(filter-out centaur/%, \
$(filter-out models/y86%, \
$(OK_CERTS)))
ifndef NO_RESCAN
$(info Scanning for "make comp" dependencies...)
# Below, we use a different --var-prefix from the default used for the
# cert.pl call above, since we don't want to redefine the CERT_PL_xxx
# variables. But note that we don't use the ACL2_COMP_xxx variables.
REBUILD_MAKEFILE_COMP := $(shell \
rm -f $(BUILD_DIR)/Makefile-comp $(BUILD_DIR)/Makefile-comp.out; \
time (($(BUILD_DIR)/cert.pl \
--quiet \
--static-makefile $(BUILD_DIR)/Makefile-comp-pre \
--cache $(BUILD_DIR)/Makefile-cache \
--acl2-books `pwd` \
--targets $(BUILD_DIR)/Makefile-books \
--no-boilerplate \
--var-prefix ACL2_COMP) \
1>&2) ;\
(cat $(BUILD_DIR)/Makefile-comp-pre | sed "s/[.]cert/.$(ACL2_COMP_EXT)/g" > \
$(BUILD_DIR)/Makefile-comp) 1>&2 ;\
echo 'MFDEPS_DEBUG := $$(shell echo Reading book comp ' \
'Makefile-comp created on' `date` '1>&2)' \
>> $(BUILD_DIR)/Makefile-comp; \
ls -l $(BUILD_DIR)/Makefile-comp)
$(info Done scanning.)
endif # ifndef NO_RESCAN
include $(BUILD_DIR)/Makefile-comp
# Define books to be skipped for multi-lisp compilation.
OK_CERTS := $(patsubst %.cert, %.$(ACL2_COMP_EXT), $(OK_CERTS))
# Start a sequence of assignments to BOOKS_SKIP_COMP:
BOOKS_SKIP_COMP :=
# Unusual directory:
BOOKS_SKIP_COMP += $(patsubst %.cert, %.$(ACL2_COMP_EXT), $(wildcard fix-cert/*.cert))
# Contains Lisp-specific readtime conditionals:
BOOKS_SKIP_COMP += hacking/evalable-ld-printing.$(ACL2_COMP_EXT)
# dft-ex.acl2 specifies no compilation; getprop.lisp can give stack
# overflow in during the load of the expansion file -- perhaps not
# surprising, given that (comp t) occurs in the .lisp file:
BOOKS_SKIP_COMP += misc/dft-ex.$(ACL2_COMP_EXT) misc/getprop.$(ACL2_COMP_EXT)
# aof.acl2 specifies no compilation; knuth-arch.lisp depends on aof:
BOOKS_SKIP_COMP += workshops/1999/knuth-91/aof.$(ACL2_COMP_EXT) \
workshops/1999/knuth-91/knuth-arch.$(ACL2_COMP_EXT)
# The .acl2 files specify no compilation:
BOOKS_SKIP_COMP += $(patsubst %.cert, %.$(ACL2_COMP_EXT), $(wildcard workshops/2002/cowles-flat/support/*.cert))
# The .acl2 files specify no compilation:
BOOKS_SKIP_COMP += $(patsubst %.cert, %.$(ACL2_COMP_EXT), $(wildcard workshops/2006/cowles-gamboa-euclid/Euclid/fld-u-poly/*.cert))
# The .acl2 file specifies no compilation:
BOOKS_SKIP_COMP += ccg/ccg.$(ACL2_COMP_EXT)
# Some .acl2 files specify no compilation, including ed3.acl2, and
# many books depend on ed3:
BOOKS_SKIP_COMP += $(patsubst %.cert, %.$(ACL2_COMP_EXT), $(wildcard workshops/2006/cowles-gamboa-euclid/Euclid/*.cert))
# The .acl2 files specify no compilation:
BOOKS_SKIP_COMP += workshops/2006/kaufmann-moore/support/rhs1-iff.$(ACL2_COMP_EXT) \
workshops/2006/kaufmann-moore/support/rhs1.$(ACL2_COMP_EXT) \
workshops/2006/kaufmann-moore/support/rhs2.$(ACL2_COMP_EXT) \
workshops/2006/kaufmann-moore/support/warnings.$(ACL2_COMP_EXT)
# There seems to be a problem with files that use include-raw. We
# skip those.
# Has (include-raw "timer.lsp"):
BOOKS_SKIP_COMP += centaur/memoize/top.$(ACL2_COMP_EXT)
BOOKS_SKIP_COMP += $(patsubst %-raw.lsp, %.$(ACL2_COMP_EXT), $(shell find . -name '*-raw.lsp' -print))
# Has readtime conditionals #+ccl and #-ccl ("not supported for this
# host Lisp").
BOOKS_SKIP_COMP += centaur/bridge/top.$(ACL2_COMP_EXT)
# CLISP says: "Lisp stack overflow":
BOOKS_SKIP_COMP += workshops/2006/rager/support/ptest-mergesort.$(ACL2_COMP_EXT)
# In Makefile-comp, bdd/benchmarks.$(ACL2_COMP_EXT) may depend on
# bdd/benchmarks.lisp, but we don't want to make either, so we do this
# explicitly:
BOOKS_SKIP_COMP += bdd/benchmarks.$(ACL2_COMP_EXT)
OK_CERTS := $(filter-out $(BOOKS_SKIP_COMP), $(OK_CERTS))
# Avoid trying to make compiled files; target %.$(ACL2_COMP_EXT) still
# "executes", but only once, and doesn't cause other compiled files to
# be out of date.
.INTERMEDIATE: $(BOOKS_SKIP_COMP)
# Note that because of the .INTERMEDIATE target above, then for the
# next targets, "Skipping" will only be printed for skipped targets
# that are dependencies of not-skipped targets. Apologies for the
# very long line. With it broken into lines using `\', a syntax error
# was reported on Linux using make version 3.80. Sigh.
%.$(ACL2_COMP_EXT): %.cert
@if [ "$(findstring $@, $(BOOKS_SKIP_COMP))" != "" ] ; then \
echo "Skipping $$PWD/$@" ; \
else \
echo "Making $$PWD/$@" ; \
(echo '(ld `((include-book "$(patsubst %.$(ACL2_COMP_EXT),%,$(@))" :load-compiled-file :comp :ttags :all))) (acl2::value :q) (acl2::exit-lisp)' | $(ACL2) >& [email protected]) ; (ls -al $@ || (echo "**COMPILATION FAILED** for `pwd`/$@" ; exit 1)) ; fi
# Finally, we handle system/pcert/, which is a special case and thus
# would otherwise be ignored because of its cert_pl_exclude file. We
# use -j 1 because the old Makefile-generic, included by the
# directory's Makefile, doesn't establish dependencies between the
# compiled files, and this can cause an error when attempting to load
# another book's partially-built compiled file. Note that this rule
# overrides the pattern rule just above (a feature of GNU make).
system/pcert/sub.$(ACL2_COMP_EXT): \
system/deps-pcert.$(ACL2_COMP_EXT)
@echo "Making $@"
@cd system/pcert/ ; \
$(MAKE) -j 1 $(ACL2_COMP_EXT) ACL2_PCERT= >& make-$(ACL2_COMP_EXT).out ; \
(cd ../.. ; ls -al $(@D)/*.$(ACL2_COMP_EXT)) ; \
if [ `ls -1 *.$(ACL2_COMP_EXT) | wc -l` != `ls -1 *.cert | wc -l` ] ; then \
echo "**COMPILATION FAILED** for $(@D);" ; \
echo " search for '**' in `pwd`/make-$(ACL2_COMP_EXT).out to see failures." ; \
exit 1 ; \
fi
OK_CERTS += system/pcert/sub.$(ACL2_COMP_EXT)
endif # ifdef ACL2_COMP
##############################
### Section: Exclude EXCLUDED_PREFIXES
##############################
# It might no longer be necessary to filter out EXCLUDED_PREFIXES from
# OK_CERTS, now that EGREP_EXTRA_EXCLUDE_STRING contributes to the
# exclusion process, but we go ahead and do so here, for robustness.
OK_CERTS := $(filter-out $(addsuffix %, $(EXCLUDED_PREFIXES)), $(OK_CERTS))
##############################
### Section: Define targets
##############################
# Keep this section at the end, so that all variable definitions have
# been completed (in particular, for OK_CERTS).
# Warning: ACL2's GNUmakefile uses the "all" target of this Makefile
# to implement its target, "regression". So please be careful about
# making major changes to "all" in this Makefile.
# First, we let the user filter the books by specifying the roots of
# the forest of books to be certified. Our implementation reduces
# $(OK_CERTS), which normally is probably closed under dependencies.
# But for most purposes it is probably not important that $(OK_CERTS)
# be closed under dependencies.
#
# Example (just remove "# " at the beginning of each line):
#
# make -k -j 4 NO_RESCAN=1 ACL2=acl2h \
# ACL2_BOOK_CERTS=" \
# workshops/2006/cowles-gamboa-euclid/Euclid/ed6a.cert \
# workshops/2006/cowles-gamboa-euclid/Euclid/ed4bb.cert \
# "
#
# If variable ACL2_BOOK_DIRS is set, then ACL2_BOOK_CERTS is extended
# accordingly. Note that the pathnames in ACL2_BOOK_DIRS should be
# relative to the top-level books directory, not absolute pathnames.
# So that ACL2_BOOK_CERTS is not recursive (but don't set it to the
# empty string, since it might be set on the command line!).
ACL2_BOOK_CERTS := $(ACL2_BOOK_CERTS)
ifneq ($(ACL2_BOOK_DIRS), )
$(info ACL2_BOOK_DIRS = $(ACL2_BOOK_DIRS))
ACL2_BOOK_DIRS_PATTERNS := $(addsuffix /%, $(ACL2_BOOK_DIRS))
ACL2_BOOK_CERTS += $(filter $(ACL2_BOOK_DIRS_PATTERNS), $(OK_CERTS))
endif # ifneq ($(ACL2_BOOK_DIRS), )
ifneq ($(ACL2_BOOK_CERTS), )
$(info ACL2_BOOK_CERTS = $(ACL2_BOOK_CERTS))
OK_CERTS := $(ACL2_BOOK_CERTS)
endif # ifneq ($(ACL2_BOOK_CERTS), )
# Avoid realpath below (isn't implemented in make 3.80).
ifeq ($(shell ls workshops 2> /dev/null), )
OK_CERTS := $(filter-out workshops/%, $(OK_CERTS))
endif # ifeq ($(realpath workshops), )
all: $(OK_CERTS)
# It was tempting to handle the `everything' target as follows:
# everything: USE_QUICKLISP = 1
# everything: all $(ADDED_BOOKS)
# But that didn't work, presumably because the value of OK_CERTS was
# on a first pass through the Makefile without USE_QUICKLISP being
# set.
.PHONY: everything
# Note: We add doc/top.cert explicitly, even though that might not
# be necessary, because at one point doc/top.cert was not
# otherwise made (something related to glucose).
everything:
ifeq ($(ACL2_HAS_HONS), )
$(MAKE) all $(ADDED_BOOKS)
else
$(MAKE) all USE_QUICKLISP=1 $(ADDED_BOOKS) doc/top.cert
endif # ifeq ($(ACL2_HAS_HONS), )
# The critical path report will work only if you have set up certificate timing
# BEFORE you build the books. See ./critpath.pl --help for details.
# BOZO I probably broke this, we shouldn't use --targets, we should use ok_certs...
critpath.txt: $(OK_CERTS)
echo "Building critpath.txt..."
time $(BUILD_DIR)/critpath.pl -m 2 --targets $(BUILD_DIR)/Makefile-books > critpath.txt
# Targets for building whole directories of books.
# basic is the default set of books to build:
.PHONY: basic
basic: arithmetic arithmetic-2 arithmetic-3 arithmetic-5 ihs std xdoc tools misc data-structures
.PHONY: add-ons
add-ons: $(filter add-ons/%, $(OK_CERTS))
.PHONY: arithmetic
arithmetic: $(filter arithmetic/%, $(OK_CERTS))
.PHONY: arithmetic-2
arithmetic-2: $(filter arithmetic-2/%, $(OK_CERTS))
.PHONY: arithmetic-3
arithmetic-3: $(filter arithmetic-3/%, $(OK_CERTS))
.PHONY: arithmetic-5
arithmetic-5: $(filter arithmetic-5/%, $(OK_CERTS))
.PHONY: bdd
bdd: $(filter bdd/%, $(OK_CERTS))