Makefile revision 13704
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
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# Makefile for generateing man page tarballs that are used in each of the
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# SUNW*.spec files
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# Generates : $(PACKAGE)-manpages-$(MANPAGE_VERSION).tar.gz
d6601a0bc4fd60e58bedbddf2481abd82cba76d7Timo Sirainen# e.g. sun-manpage-tarballs/*.tar.gz
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# "make" : Rebuilds all man page tarballs
70afae43cc78ea6ecca83f6c587072c442a15ec1Timo Sirainen# "make check-used" : Outputs list of man pages not being used.
fa2a11210f20fb8998ed656f75e163191c8047e6Timo Sirainen# "make check-version" : Prints current man page tarball version
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# "make $(PACKAGE)-manpages-$(MANPAGE_VERSION).tar.gz
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# e.g. "make SUNWgnome-panel-manpages-0.1.tar.gz"
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# will only generate SUNWgnome-panel's man page tarball
5d03d9f439e41c90215a3c938ffebe4c2a8ae257Timo Sirainen# For each package that contains man pages.
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# - Ensure all relevant man pages for your package are located under the
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# correct man page section dir i.e.
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# - Add Package name to PACKAGES Variable
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# e.g. PACKAGES = \
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# SUNWgnome-panel \
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# SUNWyour-package
542e28b384a6b26695f3e8de38fd5727d06f3333Timo Sirainen# - Add two package specific variables
542e28b384a6b26695f3e8de38fd5727d06f3333Timo Sirainen# PACKAGE_PAGES - Full path of all manpages for this package
542e28b384a6b26695f3e8de38fd5727d06f3333Timo Sirainen# e.g. SUNWgnome-panel_PAGES = man1/gnome-panel.1 etc...
542e28b384a6b26695f3e8de38fd5727d06f3333Timo Sirainen# PACKAGE.PAGES - Assigned to $(PACKAGE_PAGES).
542e28b384a6b26695f3e8de38fd5727d06f3333Timo Sirainen# e.g. SUNWgnome-panel.PAGES: $(SUNWgnome-panel_PAGES)
c3a636e4c9ae776e0eed06b6d7ad1ccfb6003afdTimo Sirainen# To Add new man pages to existing packages
c3a636e4c9ae776e0eed06b6d7ad1ccfb6003afdTimo Sirainen# -----------------------------------------
c3a636e4c9ae776e0eed06b6d7ad1ccfb6003afdTimo Sirainen# Put very simply, all that is required from engineers is to make some changes
3b22894b8805b186c73d8b754001e8d7e944be85Timo Sirainen# and commit in SVN.
3b22894b8805b186c73d8b754001e8d7e944be85Timo Sirainen# - Ensure the man page exists in SVN under the relevant man page section sub
13b063ba3ea51256fd97d7fa883f14cb08842b0dTimo Sirainen# - Add man page to the SUNW<package>_PAGES Makefile variable
13b063ba3ea51256fd97d7fa883f14cb08842b0dTimo Sirainen# e.g. For a new gnome-panel man page it would be added to
13b063ba3ea51256fd97d7fa883f14cb08842b0dTimo Sirainen# SUNWgnome-panel_PAGES
13b063ba3ea51256fd97d7fa883f14cb08842b0dTimo Sirainen# - Remake tarballs
13b063ba3ea51256fd97d7fa883f14cb08842b0dTimo Sirainen# This will re-generate all man page tarballs.
13b063ba3ea51256fd97d7fa883f14cb08842b0dTimo Sirainen# - Copy newly generated tarball from sun-manpage-tarballs to package build
13b063ba3ea51256fd97d7fa883f14cb08842b0dTimo Sirainen# sources e.g. /jds/packages/SOURCES, and ensure package builds and manpages
4da8c6cdefabd31262318c32da3c13de1d9ea953Timo Sirainen# install correctly.
5d03d9f439e41c90215a3c938ffebe4c2a8ae257Timo Sirainen# - New man page tarball will be generated by RE for each nightly, and for each
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# milestone build.
1388b590dbd85245b591346f860bc1319953318aTimo Sirainen# - Commit change back to subverison, e.g. new/amended man pagees,
1388b590dbd85245b591346f860bc1319953318aTimo Sirainen# Solaris/manpages/Makefile, Solaris/S*.spec files if affected.
4da8c6cdefabd31262318c32da3c13de1d9ea953Timo Sirainen# MANPAGE_VERSION is maintained by RE and only gets bumped when spec-files gets
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# branched. PLEASE do not change this.
baf97389e203e105b97a8183b2893740691f8c63Timo SirainenSUNWdbus-bindings.PAGES: $(SUNWdbus-bindings_PAGES)
c93aca832ee532010ead91b85fa9f614132e1be2Stephan BoschSUNWevolution-libs.PAGES: $(SUNWevolution-libs_PAGES)
542e28b384a6b26695f3e8de38fd5727d06f3333Timo SirainenSUNWevolution-exchange.PAGES: $(SUNWevolution-exchange_PAGES)
4c261fb48e6e36570a0841aa51ca483024d6a0a6Timo SirainenSUNWevolution-data-server.PAGES: $(SUNWevolution-data-server_PAGES)
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenSUNWevolution-webcal.PAGES: $(SUNWevolution-webcal_PAGES)
4da8c6cdefabd31262318c32da3c13de1d9ea953Timo SirainenSUNWgnome-a11y-dasher.PAGES: $(SUNWgnome-a11y-dasher_PAGES)
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenSUNWgnome-a11y-gok.PAGES: $(SUNWgnome-a11y-gok_PAGES)
b9dc21a94401638c00e40b695998875e1563ce77Timo SirainenSUNWgnome-a11y-libs.PAGES: $(SUNWgnome-a11y-libs_PAGES)
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo SirainenSUNWgnome-a11y-reader.PAGES: $(SUNWgnome-a11y-reader_PAGES)
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo SirainenSUNWgnome-a11y-poke.PAGES: $(SUNWgnome-a11y-poke_PAGES)
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo SirainenSUNWgnome-archive-mgr.PAGES: $(SUNWgnome-archive-mgr_PAGES)
70afae43cc78ea6ecca83f6c587072c442a15ec1Timo SirainenSUNWgnome-audio.PAGES: $(SUNWgnome-audio_PAGES)
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenSUNWgnome-base-libs.PAGES: $(SUNWgnome-base-libs_PAGES)
2f90189c6ee66a17f7bf838a8eb8a69868630fb8Timo SirainenSUNWgnome-base-libs-java.PAGES: $(SUNWgnome-base-libs-java_PAGES)
acfda38b75d0f0e899ef692fef01593bd56ed85eTimo SirainenSUNWgnome-calculator.PAGES: $(SUNWgnome-calculator_PAGES)
39f5c2b2143842ff6f827b7198cae8853b8c5bbaTimo SirainenSUNWgnome-cd-burner.PAGES: $(SUNWgnome-cd-burner_PAGES)
acfda38b75d0f0e899ef692fef01593bd56ed85eTimo SirainenSUNWgnome-character-map.PAGES: $(SUNWgnome-character-map_PAGES)
acfda38b75d0f0e899ef692fef01593bd56ed85eTimo SirainenSUNWgnome-common-devel.PAGES: $(SUNWgnome-common-devel_PAGES)
acfda38b75d0f0e899ef692fef01593bd56ed85eTimo SirainenSUNWgnome-component.PAGES: $(SUNWgnome-component_PAGES)
13b063ba3ea51256fd97d7fa883f14cb08842b0dTimo SirainenSUNWgnome-config-editor.PAGES: $(SUNWgnome-config-editor_PAGES)
19cadcc25c26af7afea1355d78e20ad64eaad263Timo SirainenSUNWgnome-config.PAGES: $(SUNWgnome-config_PAGES)
19cadcc25c26af7afea1355d78e20ad64eaad263Timo SirainenSUNWgnome-crash-report.PAGES: $(SUNWgnome-crash-report_PAGES)
0f5dc4da3982053036be65190e44bf28a67b1ca2Timo Sirainen man1/gnome-accessibility-keyboard-properties.1 \
0f5dc4da3982053036be65190e44bf28a67b1ca2Timo Sirainen man1/gnome-default-applications-properties.1 \
13b063ba3ea51256fd97d7fa883f14cb08842b0dTimo SirainenSUNWgnome-desktop-prefs.PAGES: $(SUNWgnome-desktop-prefs_PAGES)
0f5dc4da3982053036be65190e44bf28a67b1ca2Timo SirainenSUNWgnome-dialog.PAGES: $(SUNWgnome-dialog_PAGES)
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenSUNWgnome-display-mgr.PAGES: $(SUNWgnome-display-mgr_PAGES)
70afae43cc78ea6ecca83f6c587072c442a15ec1Timo SirainenSUNWgnome-file-mgr.PAGES: $(SUNWgnome-file-mgr_PAGES)
13b063ba3ea51256fd97d7fa883f14cb08842b0dTimo SirainenSUNWgnome-gtksourceview.PAGES: $(SUNWgnome-gtksourceview_PAGES)
c06d6ea0766d0520af1a93e6000c0e73f350e0a2Timo SirainenSUNWgnome-help-viewer.PAGES: $(SUNWgnome-help-viewer_PAGES)
13b063ba3ea51256fd97d7fa883f14cb08842b0dTimo SirainenSUNWgnome-hex-editor.PAGES: $(SUNWgnome-hex-editor_PAGES)
13b063ba3ea51256fd97d7fa883f14cb08842b0dTimo SirainenSUNWgnome-im-client.PAGES: $(SUNWgnome-im-client_PAGES)
20dca965f48c1d7600a268d380c0b5fb5f1011d5Timo SirainenSUNWgnome-meeting.PAGES: $(SUNWgnome-meeting_PAGES)
20dca965f48c1d7600a268d380c0b5fb5f1011d5Timo SirainenSUNWgnome-img-viewer.PAGES: $(SUNWgnome-img-viewer_PAGES)
13b063ba3ea51256fd97d7fa883f14cb08842b0dTimo Sirainen man1/scrollkeeper-get-extended-content-list.1 \
57316ab705807ac3a433e2ec9b8b6ff5d090c3d7Martti RannanjärviSUNWgnome-libs.PAGES: $(SUNWgnome-libs_PAGES)
57316ab705807ac3a433e2ec9b8b6ff5d090c3d7Martti RannanjärviSUNWgnome-media-apps.PAGES: $(SUNWgnome-media-apps_PAGES)
70afae43cc78ea6ecca83f6c587072c442a15ec1Timo SirainenSUNWgnome-media-player.PAGES: $(SUNWgnome-media-player_PAGES)
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenSUNWgnome-media.PAGES: $(SUNWgnome-media_PAGES)
3c652e7a569c2623d22b4ab30279aebddce4d396Timo SirainenSUNWgnome-menu-editor.PAGES: $(SUNWgnome-menu-editor_PAGES)
3c652e7a569c2623d22b4ab30279aebddce4d396Timo SirainenSUNWgnome-panel.PAGES: $(SUNWgnome-panel_PAGES)
3c652e7a569c2623d22b4ab30279aebddce4d396Timo SirainenSUNWgnome-pdf-viewer.PAGES: $(SUNWgnome-pdf-viewer_PAGES)
c06d6ea0766d0520af1a93e6000c0e73f350e0a2Timo SirainenSUNWgnome-pilot.PAGES: $(SUNWgnome-pilot_PAGES)
47e9fdee55c2074425cf0316f4f64fbbb790301cTimo SirainenSUNWgnome-print.PAGES: $(SUNWgnome-print_PAGES)
47e9fdee55c2074425cf0316f4f64fbbb790301cTimo SirainenSUNWgnome-removable-media.PAGES: $(SUNWgnome-removable-media_PAGES)
62fc2fe221eccc834ac6b11b94b55335d5027cd1Timo SirainenSUNWgnome-remote-desktop.PAGES: $(SUNWgnome-remote-desktop_PAGES)
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenSUNWgnome-session.PAGES: $(SUNWgnome-session_PAGES)
c06d6ea0766d0520af1a93e6000c0e73f350e0a2Timo SirainenSUNWgnome-sys-suspend.PAGES: $(SUNWgnome-sys-suspend_PAGES)
13b063ba3ea51256fd97d7fa883f14cb08842b0dTimo SirainenSUNWgnome-system-tools.PAGES: $(SUNWgnome-system-tools_PAGES)
13b063ba3ea51256fd97d7fa883f14cb08842b0dTimo SirainenSUNWgnome-system-monitor.PAGES: $(SUNWgnome-system-monitor_PAGES)
ff4ba036fcdf28d4a1a7e3c1c6c0c71793547bd6Stephan BoschSUNWgnome-terminal.PAGES: $(SUNWgnome-terminal_PAGES)
ff4ba036fcdf28d4a1a7e3c1c6c0c71793547bd6Stephan BoschSUNWgnome-text-editor.PAGES: $(SUNWgnome-text-editor_PAGES)
34512eaad8b1b2f929e6d6e3a2f7252c29fba97bTimo SirainenSUNWgnome-ui-designer.PAGES: $(SUNWgnome-ui-designer_PAGES)
5a9912dcadfd467c5ea54bdc3331eef359f0b1c5Timo SirainenSUNWgnome-utils.PAGES: $(SUNWgnome-utils_PAGES)
baf97389e203e105b97a8183b2893740691f8c63Timo SirainenSUNWthunderbird.PAGES: $(SUNWthunderbird_PAGES)
baf97389e203e105b97a8183b2893740691f8c63Timo SirainenSUNWgnome-devhelp.PAGES: $(SUNWgnome-devhelp_PAGES)
2e441a8e3d694820a82d887dcdc4d2d568e428a8Timo SirainenSUNWgnome-power-manager.PAGES: $(SUNWgnome-manager_PAGES)
303e375b7e76278f4ec541f49af0476d3e4ee710Timo SirainenSUNWprint-monitor.PAGES: $(SUNWprint-monitor_PAGES)
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenSUNWvirt-manager.PAGES: $(SUNWvirt-manager_PAGES)
85779ec11f23eb8efeb8993b1e0b9aad62c4122aTimo SirainenSUNWgnome-games.PAGES: $(SUNWgnome-games_PAGES)
cafe72dae0fd4dc48025e0c8dc189bf4901e9f70Timo SirainenSUNWxdg-user-dirs.PAGES: $(SUNWxdg-user-dirs_PAGES)
cafe72dae0fd4dc48025e0c8dc189bf4901e9f70Timo SirainenSUNWxdg-user-dirs-gtk.PAGES: $(SUNWxdg-user-dirs-gtk_PAGES)
1388b590dbd85245b591346f860bc1319953318aTimo SirainenSUNWgnome-spell.PAGES: $(SUNWgnome-manager_PAGES)
d2729522f8b4754b66be7e16548ede39b033fb04Timo Sirainen.SUFFIXES: -manpages-$(MANPAGE_VERSION).tar.gz .PAGES
1388b590dbd85245b591346f860bc1319953318aTimo SirainenTARBALLS = $(TARBALL_DIR)/$(addsuffix -$(MANPAGE_VERSION).tar.bz2, $(PACKAGES))
38dac3030bdd74acba0a60edd54b2db6d914fde2Timo Sirainen @test -d $(TARBALL_DIR) || mkdir -p "$(TARBALL_DIR)"
38dac3030bdd74acba0a60edd54b2db6d914fde2Timo Sirainen @test -x $(SGML2ROFF) || echo "sgml2roff utility not found"
38dac3030bdd74acba0a60edd54b2db6d914fde2Timo Sirainen @test -x $(GZIP) || echo "gzip utility not found"
38dac3030bdd74acba0a60edd54b2db6d914fde2Timo Sirainen $(MAKE) MAKE=\"$(MAKE)\" $$package-manpages-$(MANPAGE_VERSION).tar.gz; \
38dac3030bdd74acba0a60edd54b2db6d914fde2Timo Sirainen @test -d $(TARBALL_DIR) || mkdir -p "$(TARBALL_DIR)"
38dac3030bdd74acba0a60edd54b2db6d914fde2Timo Sirainen @if test -f $(TARBALL_DIR)/$@; then \
23152672e3ad7f3512c11df43e8dabba4fe6407dTimo Sirainen @test -d $(MANPAGE_DIR) || mkdir -p "$(MANPAGE_DIR)"
38dac3030bdd74acba0a60edd54b2db6d914fde2Timo Sirainen @echo "Converting manpages for $@"
2ac5f36aa7c2e7a07ba8815d43a6d7483f62e74cTimo Sirainen @for manpage in $($(subst .PAGES,_PAGES,$<)); do \
d23dfc385f22d7a2c466d29501c9e0ce5a243deeTimo Sirainen suffix=`expr "$$base_manpage" : '.*\.\([^./]*\)$'`; \
d23dfc385f22d7a2c466d29501c9e0ce5a243deeTimo Sirainen $(SGML2ROFF) $$manpage > $(MANPAGE_DIR)/$$base_manpage; \
d23dfc385f22d7a2c466d29501c9e0ce5a243deeTimo Sirainen idx1 = index($$0, "ARC "); \
d23dfc385f22d7a2c466d29501c9e0ce5a243deeTimo Sirainen idx2 = index($$0, "-->"); \
23152672e3ad7f3512c11df43e8dabba4fe6407dTimo Sirainen if (idx1 > 0 && idx2 > 0) { \
38dac3030bdd74acba0a60edd54b2db6d914fde2Timo Sirainen print "...\\\" " substr($$0, idx1+6, idx2-(idx1+6)); \
bcf1cf2afb9692b0db555e6ecf662a2fbd19793dTimo Sirainen echo $$base_manpage >> $(MANPAGE_DIR)/$$suffix; \
d23dfc385f22d7a2c466d29501c9e0ce5a243deeTimo Sirainen mv $(MANPAGE_DIR)/ent $(MANPAGE_DIR)/entities; \
bcf1cf2afb9692b0db555e6ecf662a2fbd19793dTimo Sirainen @for mantype in entities 1 1m 3 3tiff 4 5; do \
bcf1cf2afb9692b0db555e6ecf662a2fbd19793dTimo Sirainen echo "MAN"$$mantype"PAGES = \\" >> $(MANPAGE_DIR)/Makefile; \
d23dfc385f22d7a2c466d29501c9e0ce5a243deeTimo Sirainen if (length(saved_page) > 0) \
0f5dc4da3982053036be65190e44bf28a67b1ca2Timo Sirainen print " " saved_page " \\"; \
23152672e3ad7f3512c11df43e8dabba4fe6407dTimo Sirainen saved_page=$$0; \
23152672e3ad7f3512c11df43e8dabba4fe6407dTimo Sirainen print " " saved_page; \
0f5dc4da3982053036be65190e44bf28a67b1ca2Timo Sirainen }' $(MANPAGE_DIR)/$$mantype >> $(MANPAGE_DIR)/Makefile; \
23152672e3ad7f3512c11df43e8dabba4fe6407dTimo Sirainen @for mantype in entities 1 1m 3 3tiff 4 5; do \
0f5dc4da3982053036be65190e44bf28a67b1ca2Timo Sirainen echo " install -d \$$(DESTDIR)\$$(MAN"$$mantype"DIR)" >> $(MANPAGE_DIR)/Makefile; \
23152672e3ad7f3512c11df43e8dabba4fe6407dTimo Sirainen echo " for mp in \$$(MAN"$$mantype"PAGES); do \\" >> $(MANPAGE_DIR)/Makefile; \
0f5dc4da3982053036be65190e44bf28a67b1ca2Timo Sirainen echo " install --mode=0644 \$$\$$mp \$$(DESTDIR)\$$(MAN"$$mantype"DIR); \\" >> $(MANPAGE_DIR)/Makefile; \
13b063ba3ea51256fd97d7fa883f14cb08842b0dTimo Sirainen @tarball=`basename "$@" .gz`; echo "Making tarball $$tarball"; \
13b063ba3ea51256fd97d7fa883f14cb08842b0dTimo Sirainen $(TAR) -cf $(TARBALL_DIR)/$$tarball $(MANPAGE_DIR); \
d1fff80640050631b06bfab904a34b2ad24601e8Timo Sirainen @test -d check-used-manpages || mkdir -p "check-used-manpages"
d1fff80640050631b06bfab904a34b2ad24601e8Timo Sirainen @test -d check-all-manpages || mkdir -p "check-all-manpages"
23152672e3ad7f3512c11df43e8dabba4fe6407dTimo Sirainen $(MAKE) MAKE=\"$(MAKE)\" $$package.check-used; \
1388b590dbd85245b591346f860bc1319953318aTimo Sirainen if test -f check-used-manpages/$$base_manpage; then \
1388b590dbd85245b591346f860bc1319953318aTimo Sirainen echo " "$$base_manpage >> unused-manpages.txt; \
d1fff80640050631b06bfab904a34b2ad24601e8Timo Sirainen @if test -f unused-manpages.txt; then \
d1fff80640050631b06bfab904a34b2ad24601e8Timo Sirainen echo "Following Manpages are not being used in any SUNW package :"; \
c3a636e4c9ae776e0eed06b6d7ad1ccfb6003afdTimo Sirainen echo "All man pages are being used"; \
c3a636e4c9ae776e0eed06b6d7ad1ccfb6003afdTimo Sirainen @for manpage in $($(subst .PAGES,_PAGES,$<)); do \